aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/sha1
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-09-06 15:13:22 -0700
committerDylan Baker <[email protected]>2019-11-05 16:39:55 +0000
commitf9f60da813e69aacf541d25a24622c896f15ba98 (patch)
treece1ba60e57b85a9ea16cfe12efcf3e1ab994d596 /src/util/sha1
parent37e54736a7bab3397e316ae4493c2e3d4aebfa5e (diff)
util/u_endian: set PIPE_ARCH_*_ENDIAN to 1
This will allow it to be used as a drop in replacement for _mesa_little_endian in a number of cases. v2: - Always define PIPE_ARCH_LITTLE_ENDIAN and PIPE_ARCH_BIG_ENDIAN, define the one that reflects the host system to 1 and the other to 0 - replace all uses of #ifdef, #ifndef, and #if defined() with #if and #if ! with PIPE_ARCH_*_ENDIAN Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util/sha1')
-rw-r--r--src/util/sha1/sha1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/sha1/sha1.c b/src/util/sha1/sha1.c
index f36a77c2026..78b3da31d0e 100644
--- a/src/util/sha1/sha1.c
+++ b/src/util/sha1/sha1.c
@@ -25,7 +25,7 @@
* blk0() and blk() perform the initial expand.
* I got the idea of expanding during the round function from SSLeay
*/
-#ifdef PIPE_ARCH_LITTLE_ENDIAN
+#if PIPE_ARCH_LITTLE_ENDIAN
# define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
|(rol(block->l[i],8)&0x00FF00FF))
#else