Skip to content

Commit

Permalink
Update libdivide
Browse files Browse the repository at this point in the history
This will includes at least [1].

  [1]: ridiculousfish/libdivide#94

v2: Define LIBDIVIDE_* macros mutually exclusive
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
  • Loading branch information
azat committed Dec 13, 2022
1 parent 3ae9f12 commit cdfe62f
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 2,549 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,6 @@
[submodule "contrib/google-benchmark"]
path = contrib/google-benchmark
url = https://github.com/google/benchmark.git
[submodule "contrib/libdivide"]
path = contrib/libdivide
url = https://github.com/ridiculousfish/libdivide.git
2 changes: 1 addition & 1 deletion contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ add_contrib (dragonbox-cmake dragonbox)
add_contrib (vectorscan-cmake vectorscan)
add_contrib (jemalloc-cmake jemalloc)
add_contrib (libcpuid-cmake libcpuid)
add_contrib (libdivide)
add_contrib (libdivide-cmake)
add_contrib (libmetrohash)
add_contrib (lz4-cmake lz4)
add_contrib (murmurhash)
Expand Down
1 change: 1 addition & 0 deletions contrib/libdivide
Submodule libdivide added at 3bd343
7 changes: 7 additions & 0 deletions contrib/libdivide-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(LIBDIVIDE_SOURCE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libdivide")
add_library (_libdivide INTERFACE)
# for libdivide.h
target_include_directories (_libdivide SYSTEM BEFORE INTERFACE ${LIBDIVIDE_SOURCE_DIR})
# for libdivide-config.h
target_include_directories (_libdivide SYSTEM BEFORE INTERFACE .)
add_library (ch_contrib::libdivide ALIAS _libdivide)
9 changes: 9 additions & 0 deletions contrib/libdivide-cmake/libdivide-config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#if defined(__SSE2__)
# define LIBDIVIDE_SSE2
#elif defined(__AVX512F__) || defined(__AVX512BW__) || defined(__AVX512VL__)
# define LIBDIVIDE_AVX512
#elif defined(__AVX2__)
# define LIBDIVIDE_AVX2
#elif defined(__aarch64__) && defined(__ARM_NEON)
# define LIBDIVIDE_NEON
#endif
3 changes: 0 additions & 3 deletions contrib/libdivide/CMakeLists.txt

This file was deleted.

20 changes: 0 additions & 20 deletions contrib/libdivide/LICENSE.txt

This file was deleted.

2 changes: 0 additions & 2 deletions contrib/libdivide/README.txt

This file was deleted.

Loading

0 comments on commit cdfe62f

Please sign in to comment.