changeset 309:0498b2f2851a libavutil

put state[5] last so no padding is needed on arch where uint64_t needs 8byte alignment
author michael
date Tue, 13 Mar 2007 10:48:22 +0000
parents 66948d7cef8a
children 9a876d28d480
files sha1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sha1.c	Tue Mar 13 10:46:18 2007 +0000
+++ b/sha1.c	Tue Mar 13 10:48:22 2007 +0000
@@ -6,9 +6,9 @@
 #include "sha1.h"
 
 typedef struct AVSHA1 {
-    uint32_t state[5];
     uint64_t count;
     uint8_t buffer[64];
+    uint32_t state[5];
 } AVSHA1;
 
 #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))