aboutsummaryrefslogtreecommitdiff
path: root/crypt
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-07-02 20:46:37 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-02 20:46:37 -0400
commitd5032639a4a7e76213942f5d9c9ea20d2e35c01d (patch)
tree005cad1216d774050ad881c6158bf80d76552b80 /crypt
parentFix last patch for big-endian machines (diff)
downloadglibc-d5032639a4a7e76213942f5d9c9ea20d2e35c01d.tar.gz
glibc-d5032639a4a7e76213942f5d9c9ea20d2e35c01d.tar.bz2
glibc-d5032639a4a7e76213942f5d9c9ea20d2e35c01d.zip
Complete last patch
Diffstat (limited to 'crypt')
-rw-r--r--crypt/sha512.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/crypt/sha512.h b/crypt/sha512.h
index d98a2fcff1..27dd717967 100644
--- a/crypt/sha512.h
+++ b/crypt/sha512.h
@@ -39,13 +39,8 @@ struct sha512_ctx
# define USE_TOTAL128
unsigned int total128 __attribute__ ((__mode__ (TI)));
#endif
-#if BYTE_ORDER == LITTLE_ENDIAN
-# define TOTAL128_low 0
-# define TOTAL128_high 1
-#else
-# define TOTAL128_low 1
-# define TOTAL128_high 0
-#endif
+#define TOTAL128_low (1 - (BYTE_ORDER == LITTLE_ENDIAN))
+#define TOTAL128_high (BYTE_ORDER == LITTLE_ENDIAN)
uint64_t total[2];
};
uint64_t buflen;