From eb9cac0d5da9d07760eacaffc2cf16867abd08a9 Mon Sep 17 00:00:00 2001 From: unitrunker Date: Tue, 4 Sep 2018 04:35:48 -0500 Subject: [PATCH 1/2] typo fix for non see use case. --- src/ffts_trig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ffts_trig.c b/src/ffts_trig.c index 1094be4d8f7..cd59d9f82f3 100644 --- a/src/ffts_trig.c +++ b/src/ffts_trig.c @@ -881,7 +881,7 @@ int ffts_generate_cosine_sine_pow2_32f(ffts_cpx_32f *const table, int table_size) { const ffts_cpx_64f *FFTS_RESTRICT ct; - const double_t *FFTS_RESTRICT hs; + const ffts_double_t *FFTS_RESTRICT hs; ffts_cpx_64f FFTS_ALIGN(16) w[32]; int i, log_2, offset; @@ -1136,4 +1136,4 @@ ffts_generate_table_1d_real_32f(struct _ffts_plan_t *const p, } return 0; -} \ No newline at end of file +} From fca8a46dbea3d10f21f95fbaafcff1d47cee741f Mon Sep 17 00:00:00 2001 From: unitrunker Date: Tue, 4 Sep 2018 04:37:36 -0500 Subject: [PATCH 2/2] clang compiler via cmake compiler ID. --- CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a02f11a13c7..0111de579eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,9 +298,9 @@ if(NOT CMAKE_CROSSCOMPILING) endif(NOT NEON_HARDFP_SUPPORTED AND NOT NEON_SOFTFP_SUPPORTED) else() # enable SSE code generation - if(CMAKE_COMPILER_IS_GNUCC) + if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_SAVE} -msse") - endif(CMAKE_COMPILER_IS_GNUCC) + endif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) # check if the platform has support for SSE intrinsics check_include_file(xmmintrin.h HAVE_XMMINTRIN_H) @@ -310,9 +310,9 @@ if(NOT CMAKE_CROSSCOMPILING) endif(HAVE_XMMINTRIN_H) # enable SSE2 code generation - if(CMAKE_COMPILER_IS_GNUCC) + if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_SAVE} -msse2") - endif(CMAKE_COMPILER_IS_GNUCC) + endif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) # check if the platform has support for SSE2 intrinsics check_include_file(emmintrin.h HAVE_EMMINTRIN_H) @@ -322,9 +322,9 @@ if(NOT CMAKE_CROSSCOMPILING) endif(HAVE_EMMINTRIN_H) # enable SSE3 code generation - if(CMAKE_COMPILER_IS_GNUCC) + if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_SAVE} -msse3") - endif(CMAKE_COMPILER_IS_GNUCC) + endif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) # check if the platform has support for SSE3 intrinsics check_include_file(pmmintrin.h HAVE_PMMINTRIN_H) @@ -371,7 +371,7 @@ if(MSVC) set(CMAKE_DEBUG_POSTFIX "d") add_definitions(-D_USE_MATH_DEFINES) -elseif(CMAKE_COMPILER_IS_GNUCC) +elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" ) include(CheckCCompilerFlag) include(CheckLibraryExists)