Skip to content

Commit

Permalink
Cherry pick commit from libebur128 upstream master
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Mar 11, 2018
1 parent ce4a9ee commit 7afe432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/libebur128/ebur128/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ endif()

if(MSVC)
add_definitions(-D_USE_MATH_DEFINES)
add_definitions(/arch:SSE2)
add_definitions(-D __SSE2_MATH__)
if(CMAKE_SIZEOF_VOID_P LESS 8)
add_definitions(/arch:SSE2)
endif()
endif()


Expand Down
2 changes: 1 addition & 1 deletion lib/libebur128/ebur128/ebur128.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ static void ebur128_check_true_peak(ebur128_state* st, size_t frames) {
}
}

#ifdef __SSE2_MATH__
#if defined(__SSE2_MATH__) || defined(_M_X64) || _M_IX86_FP >= 2
#include <xmmintrin.h>
#define TURN_ON_FTZ \
unsigned int mxcsr = _mm_getcsr(); \
Expand Down

0 comments on commit 7afe432

Please sign in to comment.