block-sha1: make the size member first in the context struct
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>
Nicolas Pitre committed
Aug 17, 2009 at 20:18 UTC
d5f6a96fa4792f6143d06d9c0b572a96d7235305
1 file changed
+1
-1
block-sha1/sha1.h
+1
-1
@@ -5,9 +5,9 @@
5
*/
6
7
typedef struct {
8
+ unsigned long long size;
9
unsigned int H[5];
10
unsigned int W[16];
10
- unsigned long long size;
11
} blk_SHA_CTX;
12
13
void blk_SHA1_Init(blk_SHA_CTX *ctx);