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