Skip to content

Commit

Permalink
Enable SSE2 support for 32-bit Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Sep 28, 2023
1 parent 0a852da commit c65d41d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cmake-proxies/cmake-modules/AudacityFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,12 @@ function( audacity_append_common_compiler_options var use_pch )
$<IF:$<CONFIG:Debug>,-D_DEBUG=1,-U_DEBUG>

$<$<PLATFORM_ID:Darwin>:-DUSE_AQUA_THEME>

# Enable SIMD support when available
${MMX_FLAG}
${SSE_FLAG}
)

# Definitions controlled by the AUDACITY_BUILD_LEVEL switch
if( AUDACITY_BUILD_LEVEL EQUAL 0 )
list( APPEND ${var} -DIS_ALPHA -DUSE_ALPHA_MANUAL )
Expand Down Expand Up @@ -400,7 +405,7 @@ function(collect_edges TARGET IMPORT_TARGETS LIBTYPE)
endif()

propagate_interesting_dependencies( ${TARGET} "${IMPORT_TARGETS}" )

append_node_attributes( ATTRIBUTES ${TARGET} )

list( APPEND GRAPH_EDGES "\"${TARGET}\" [${ATTRIBUTES}]" )
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-time-and-pitch/StaffPad/SimdTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define __vecc
#endif

#if defined(__SSE2__) || (defined(_M_AMD64) || defined(_M_X64))
#if defined(__SSE2__) || (defined(_M_AMD64) || defined(_M_X64)) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)
#include "SimdTypes_sse2.h"
#elif defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64)
#include "SimdTypes_neon.h"
Expand Down

0 comments on commit c65d41d

Please sign in to comment.