Skip to content

Commit

Permalink
Some minor arm-based fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Jan 3, 2024
1 parent 0ec378f commit 32f6f40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
if (CXX_COMPILER_VERSION VERSION_LESS 4.2.1)
message(STATUS "Clang version must be at least 4.2.1!" )
endif()
set (CMAKE_CXX_FLAGS_RELEASE "-Wall -Wcast-align -O3 -DNDEBUG -std=c++11 -DHAVE_CXX0X-march=native")
set (CMAKE_CXX_FLAGS_RELEASE "-Wall -Wcast-align -O3 -DNDEBUG -std=c++11 -DHAVE_CXX0X -march=native")
set (CMAKE_CXX_FLAGS_DEBUG "-Wall -Wcast-align -ggdb -std=c++11 -DHAVE_CXX0X -march=native")
set (CMAKE_C_FLAGS_RELEASE "-Wall -Wcast-align -O3 -DNDEBUG -std=c99-march=native")
set (CMAKE_C_FLAGS_RELEASE "-Wall -Wcast-align -O3 -DNDEBUG -std=c99 -march=native")
set (CMAKE_C_FLAGS_DEBUG "-Wall -Wcast-align -ggdb -std=c99 -march=native")
elseif(WIN32)
message(FATAL_ERROR "Please, use Linux or MacOS!")
Expand Down
2 changes: 1 addition & 1 deletion headers/simdgroupsimple.h
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ namespace FastPForLib {
case 253:return _mm_srli_epi32(comprBlock, 253);
case 254:return _mm_srli_epi32(comprBlock, 254);
case 255:return _mm_srli_epi32(comprBlock, 255);
default: _mm_srli_epi32(comprBlock, 255); break;
default:return _mm_srli_epi32(comprBlock, 255);
}
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion headers/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ inline void checkifdivisibleby(size_t a, uint32_t x) {
__attribute__((const)) inline uint32_t asmbits(const uint32_t v) {
#ifdef _MSC_VER
return gccbits(v);
#elifdef __ARM_NEON__
#elif defined(__ARM_NEON__)
return gccbits(v);
#else
if (v == 0)
Expand Down

0 comments on commit 32f6f40

Please sign in to comment.