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:
parent
d99ad871a6
commit
2ae92376b7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue