Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
block-sha1: make the size member first in the context struct
author
Nicolas Pitre
<nico@cam.org>
Tue, 18 Aug 2009 00:18:23 +0000
(20:18 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 18 Aug 2009 19:26:01 +0000
(12:26 -0700)
This is a 64-bit value, hence having it first provides a better
alignment.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
block-sha1/sha1.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a122185
)
diff --git
a/block-sha1/sha1.h
b/block-sha1/sha1.h
index c1ae74d3dab1686a886d145fc0fb9bf4c9b669c9..81abfd4c1c581c644d0149421aca642de323fca6 100644
(file)
--- a/
block-sha1/sha1.h
+++ b/
block-sha1/sha1.h
@@
-5,9
+5,9
@@
*/
typedef struct {
+ unsigned long long size;
unsigned int H[5];
unsigned int W[16];
- unsigned long long size;
} blk_SHA_CTX;
void blk_SHA1_Init(blk_SHA_CTX *ctx);