Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/ffts_trig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -1136,4 +1136,4 @@ ffts_generate_table_1d_real_32f(struct _ffts_plan_t *const p,
}

return 0;
}
}