x86_64.h

Which x86-64 vector extensions the engine being compiled may use.

The compiler predefines __AVX512IFMA__ and friends from the engine’s -m flags, set in the root meson.build. The portable engine forces every macro here to 0, so its scalar path compiles on any host.

Every macro is always defined, to 0 or 1. Test them with #if; #ifdef is true for all of them. The build passes -Wundef, so a misspelt name is a warning.

See also

crypto’s kernels/gates.h for the instructions its kernels use.

Defines

VFHE_HAVE_X86_64

1 on the x86-64 vector engines; 0 on the portable engine and on every other architecture. The other macros are gated on it.

VFHE_HAVE_AVX512F

1 when the engine may use AVX-512 Foundation (-mavx512f).

VFHE_HAVE_AVX512IFMA

1 when the engine may use AVX-512 IFMA (-mavx512ifma), the 52-bit fused multiply the multiprecision kernels are built on.