On Tue, 17 Oct 2006 14:47:16 -0400 (EDT) Nicolas Pitre wrote:
=20
Yes, on x86_64 this is 24 because of 8-byte alignment for longs:
$ echo 'unsigned x =3D sizeof(union{unsigned char sha1[20]; long offset;});=
' | gcc -S -x c -m64 -o - - | grep long
.long 24
$ echo 'unsigned x =3D sizeof(union{unsigned char sha1[20]; long offset;});=
' | gcc -S -x c -m32 -o - - | grep long
.long 20