-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Minor] Limit sse41 code to sse41 and x86_64
- Loading branch information
Showing
3 changed files
with
7 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
SET(UTFSRC ${CMAKE_CURRENT_SOURCE_DIR}/fastutf8.c) | ||
IF(HAVE_AVX2) | ||
IF(HAVE_AVX2 AND "${ARCH}" STREQUAL "x86_64") | ||
SET(UTFSRC ${UTFSRC} ${CMAKE_CURRENT_SOURCE_DIR}/avx2.c) | ||
MESSAGE(STATUS "UTF8: AVX2 support is added") | ||
ENDIF() | ||
IF(HAVE_SSE41) | ||
IF(HAVE_SSE41 AND "${ARCH}" STREQUAL "x86_64") | ||
SET(UTFSRC ${UTFSRC} ${CMAKE_CURRENT_SOURCE_DIR}/sse41.c) | ||
MESSAGE(STATUS "UTF8: SSE41 support is added") | ||
ENDIF() | ||
|
||
CONFIGURE_FILE(platform_config.h.in platform_config.h) | ||
|
||
ADD_LIBRARY(rspamd-fastutf8 STATIC ${UTFSRC}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.