1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-04-28 05:25:13 +02:00

BLAKE3_FORCE_PORTABLE

simple flag to only compile the portable implementation

got the idea from https://github.com/BLAKE3-team/BLAKE3/issues/364#issuecomment-2001979018

could name it BLAKE3_PORTABLE instead, maybe, idk
This commit is contained in:
divinity76 2024-03-16 15:03:11 +01:00 committed by GitHub
parent d99ad871a6
commit 2ae92376b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,14 @@ enum blake3_flags {
DERIVE_KEY_MATERIAL = 1 << 6,
};
#ifdef BLAKE3_FORCE_PORTABLE
#define BLAKE3_NO_SSE2
#define BLAKE3_NO_SSE41
#define BLAKE3_NO_AVX2
#define BLAKE3_NO_AVX512
#define BLAKE3_USE_NEON 0
#endif
// This C implementation tries to support recent versions of GCC, Clang, and
// MSVC.
#if defined(_MSC_VER)