From 7f46b04524d211967ff2d9f28857b8298a0fb890 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Wed, 3 Jan 2024 18:15:27 -0500 Subject: [PATCH] minor fixes --- CMakeLists.txt | 8 ++++---- headers/simdgroupsimple.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6fd1e1..5968577 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,10 +94,10 @@ elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STR 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 -msse4.1 -march=native") - set (CMAKE_CXX_FLAGS_DEBUG "-Wall -Wcast-align -ggdb -std=c++11 -DHAVE_CXX0X -msse4.1 -march=native") - set (CMAKE_C_FLAGS_RELEASE "-Wall -Wcast-align -O3 -DNDEBUG -std=c99 -msse4.1 -march=native") - set (CMAKE_C_FLAGS_DEBUG "-Wall -Wcast-align -ggdb -std=c99 -msse4.1 -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_DEBUG "-Wall -Wcast-align -ggdb -std=c99 -march=native") elseif(WIN32) # TODO add support for later versions? if(NOT MSVC12) diff --git a/headers/simdgroupsimple.h b/headers/simdgroupsimple.h index fd7e41b..f496662 100644 --- a/headers/simdgroupsimple.h +++ b/headers/simdgroupsimple.h @@ -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); break; } } #endif