Skip to content

Commit

Permalink
update libsimdpp
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeli committed Jun 12, 2024
1 parent a7038d8 commit 161d924
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ hunter_default_version(libogg VERSION 1.3.3-p0)
hunter_default_version(libpcre VERSION 8.41)
hunter_default_version(librtmp VERSION 2.4.0-p0)
hunter_default_version(libscrypt VERSION 1.21-p1)
hunter_default_version(libsimdpp VERSION 2.x-p0)
hunter_default_version(libsodium VERSION 1.0.16-p0)
hunter_default_version(libunibreak VERSION 4.0)
hunter_default_version(libusb VERSION 1.0.23)
Expand Down
15 changes: 15 additions & 0 deletions examples/libsimdpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.2)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(libsimdpp-test)

# DOCUMENTATION_START {
hunter_add_package(libsimdpp)
find_package(libsimdpp CONFIG REQUIRED)

add_executable(libsimdpp_test main.cpp)
target_link_libraries(libsimdpp_test libsimdpp::simdpp)
# DOCUMENTATION_END }
6 changes: 6 additions & 0 deletions examples/libsimdpp/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <simdpp/simd.h>
int main() {
simdpp::uint8<32> a;
simdpp::uint8<32> b;
auto c = a + b;
}

0 comments on commit 161d924

Please sign in to comment.