xref: /freebsd/sys/crypto/blake2/config.h (revision 71625ec9ad2a9bc8c09784fbd23b759830e0ee5f)
1 /* This file is in the public domain */
2 #pragma once
3 
4 #include <sys/endian.h>
5 
6 #if _BYTE_ORDER == _LITTLE_ENDIAN
7 #define NATIVE_LITTLE_ENDIAN 1
8 #else
9 /* #undef NATIVE_LITTLE_ENDIAN */
10 #endif
11 
12 #if defined(__ARM_FEATURE_UNALIGNED) \
13     || defined(__i386__) || defined(__x86_64__) \
14     || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_8__) \
15 /* #undef HAVE_ALIGNED_ACCESS_REQUIRED */
16 #else
17 #define HAVE_ALIGNED_ACCESS_REQUIRED 1
18 #endif
19 
20 #define HAVE_EXPLICIT_BZERO 1
21