aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/base64/avx2
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /contrib/libs/base64/avx2
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'contrib/libs/base64/avx2')
-rw-r--r--contrib/libs/base64/avx2/ya.make30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/libs/base64/avx2/ya.make b/contrib/libs/base64/avx2/ya.make
new file mode 100644
index 0000000000..d94d6c9061
--- /dev/null
+++ b/contrib/libs/base64/avx2/ya.make
@@ -0,0 +1,30 @@
+LIBRARY()
+
+LICENSE(
+ BSD-2-Clause AND
+ MIT
+)
+
+LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
+
+NO_UTIL()
+
+SRCS(
+ codec_avx2.c
+ lib.c
+)
+
+IF (ARCH_X86_64 OR ARCH_I386)
+ IF (MSVC AND NOT CLANG_CL)
+ CONLYFLAGS(/D__AVX2__=1)
+ ELSEIF (CLANG_CL)
+ CONLYFLAGS(-mavx2)
+ ELSE()
+ CONLYFLAGS(
+ -mavx2
+ -std=c11
+ )
+ ENDIF()
+ENDIF()
+
+END()