File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 9393#define SHA1DC_BIGENDIAN
9494
9595/* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> */
96+ #elif (defined(_AIX) || defined(__hpux))
97+
98+ /*
99+ * Defines Big Endian on a whitelist of OSs that are known to be Big
100+ * Endian-only. See
101+ * https://public-inbox.org/git/93056823-2740-d072-1ebd-46b440b33d7e@felt.demon.nl/
102+ */
103+ #define SHA1DC_BIGENDIAN
104+
105+ /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> */
96106#elif defined(SHA1DC_ON_INTEL_LIKE_PROCESSOR)
97107/*
98108 * As a last resort before we do anything else we're not 100% sure
99109 * about below, we blacklist specific processors here. We could add
100110 * more, see e.g. https://wiki.debian.org/ArchitectureSpecificsMemo
101111 */
102- #else /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <processor blacklist> */
112+ #else /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> or <processor blacklist> */
103113
104114/* We do nothing more here for now */
105115/*#error "Uncomment this to see if you fall through all the detection"*/
114124#endif
115125/*ENDIANNESS SELECTION*/
116126
127+ #ifndef SHA1DC_FORCE_ALIGNED_ACCESS
117128#if defined(SHA1DC_FORCE_UNALIGNED_ACCESS) || defined(SHA1DC_ON_INTEL_LIKE_PROCESSOR)
118129#define SHA1DC_ALLOW_UNALIGNED_ACCESS
119- #endif /*UNALIGNMENT DETECTION*/
120-
130+ #endif /*UNALIGNED ACCESS DETECTION*/
131+ #endif /*FORCE ALIGNED ACCESS*/
121132
122133#define rotate_right(x,n) (((x)>>(n))|((x)<<(32-(n))))
123134#define rotate_left(x,n) (((x)<<(n))|((x)>>(32-(n))))
You can’t perform that action at this time.
0 commit comments