xref: /freebsd/sys/crypto/blake2/config.h (revision 60fde7ce5d7bf5d94290720ea53db5701ab406a8)
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