From d5f6a96fa4792f6143d06d9c0b572a96d7235305 Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Mon, 17 Aug 2009 20:18:23 -0400 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- block-sha1/sha1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block-sha1/sha1.h b/block-sha1/sha1.h index c1ae74d3d..81abfd4c1 100644 --- 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); -- 2.30.2