aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-04-18 00:17:39 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-04-18 00:17:39 +0300
commit3cfb8f45a8c6b0f46f787cb41f598c42395a5a99 (patch)
treee939d18a6c44e8b8f7d120a5e81dd1fa9b75aeb4
parentd814f23525220a4b4dd9eced8519fd598fd0e3bc (diff)
downloadydb-3cfb8f45a8c6b0f46f787cb41f598c42395a5a99.tar.gz
Restore runtime dispatching for contrib/libs/blake2
Also: * Add support for `SRC_C_XOP` (being and AMD-specific extension) * Rename `contrib/libs/libb2` to `contrib/libs/blake2` ref:1555e4e2ef733d5e44e07ce24e99853b1b1e548a
-rw-r--r--build/ymake.core.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 8264f66ba5..69c3542bae 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -5530,6 +5530,7 @@ SSE_DEFINES=
SSE_CFLAGS=
SSE4_DEFINES=
SSE4_CFLAGS=
+XOP_CFLAGS=
NO_LTO_CFLAGS=
@@ -5542,6 +5543,7 @@ when (($ARCH_X86_64 || $ARCH_I386) && $DISABLE_INSTRUCTION_SETS != "yes") {
SSSE3_CFLAGS=-mssse3
SSE41_CFLAGS=-msse4.1
SSE42_CFLAGS=-msse4.2
+ XOP_CFLAGS=-mxop
POPCNT_CFLAGS=-mpopcnt
PCLMUL_CFLAGS=-mpclmul
AVX_CFLAGS=-mavx
@@ -6188,6 +6190,15 @@ macro SRC_C_SSE4(FILE, FLAGS...) {
}
# tag:cpu tag:src-processing
+### @usage SRC_C_SSE4(File Flags...)
+### Compile single .c-file with XOP
+### (an AMD-specific instruction set, see https://en.wikipedia.org/wiki/XOP_instruction_set)
+### and extra Flags (optional)
+macro SRC_C_XOP(FILE, FLAGS...) {
+ _SRC(c $FILE $XOP_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .xop)
+}
+
+# tag:cpu tag:src-processing
### @usage SRC_C_AVX(File Flags...)
### Compile single .c-file with AVX and extra Flags.
macro SRC_C_AVX(FILE, FLAGS...) {