projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feea494
)
Complete last patch
author
Ulrich Drepper
<drepper@gmail.com>
Sun, 3 Jul 2011 00:46:37 +0000
(20:46 -0400)
committer
Ulrich Drepper
<drepper@gmail.com>
Sun, 3 Jul 2011 00:46:37 +0000
(20:46 -0400)
crypt/sha512.h
patch
|
blob
|
history
diff --git
a/crypt/sha512.h
b/crypt/sha512.h
index d98a2fcff17737611eab1b0c44464cb1e1bfabf9..27dd71796729a6751e559872eb3d175db44f6fca 100644
(file)
--- 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;