diff options
author | Mikko Orispaa <mikko.orispaa@gmail.com> | 2015-11-20 07:32:34 +0000 |
---|---|---|
committer | Mikko Orispaa <mikko.orispaa@gmail.com> | 2015-11-20 07:32:34 +0000 |
commit | 42546982a254031a5ead53e53ba2a5872b582651 (patch) | |
tree | 22c15ca5194fdbc49b22d0bd6ad93787b3c61f6c | |
parent | 031d73b0a86058c4a7cb0ecebd7fb2a9015cf13b (diff) | |
download | ffts-42546982a254031a5ead53e53ba2a5872b582651.zip ffts-42546982a254031a5ead53e53ba2a5872b582651.tar.gz |
Changed NEON test in CMakeList.txt so that it works for newer ARMs (-mfloat-abi=hard). Fixed a bug in test.c (did not compile for NEON-ARM).
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | tests/test.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 00122db..f6f5c4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,7 +130,7 @@ if(NOT CMAKE_CROSSCOMPILING) ) # Test running with -mfpu=neon - set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_SAVE} -mfpu=neon -mfloat-abi=softfp") + set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_SAVE} -mfpu=neon -mfloat-abi=hard") check_c_source_runs("${TEST_SOURCE_CODE}" NEON_SUPPORTED) if(NOT NEON_SUPPORTED) @@ -389,4 +389,4 @@ add_executable(ffts_test target_link_libraries(ffts_test ffts_static ${FFTS_EXTRA_LIBRARIES} -)
\ No newline at end of file +) diff --git a/tests/test.c b/tests/test.c index 9559095..d07f766 100644 --- a/tests/test.c +++ b/tests/test.c @@ -165,7 +165,7 @@ int main(int argc, char *argv[]) printf("%d %d %f %f\n", i, sign, output[2*i], output[2*i+1]); ffts_free(p); -#ifdef HAVE_NEON +#ifdef HAVE_SSE _mm_free(input); _mm_free(output); #else @@ -189,4 +189,4 @@ int main(int argc, char *argv[]) } return 0; -}
\ No newline at end of file +} |