[Ffmpeg-cvslog] r8379 - trunk/libavutil/sha1.c
Michael Niedermayer
michaelni
Tue Mar 13 21:11:05 CET 2007
Hi
On Tue, Mar 13, 2007 at 11:09:08AM -0500, Rich Felker wrote:
> On Tue, Mar 13, 2007 at 11:48:22AM +0100, michael wrote:
> > Author: michael
> > Date: Tue Mar 13 11:48:22 2007
> > New Revision: 8379
> >
> > Modified:
> > trunk/libavutil/sha1.c
> >
> > Log:
> > put state[5] last so no padding is needed on arch where uint64_t needs 8byte alignment
>
> Padding is needed anyway. The size of a struct is always a multiple of
> the maximum alignment needed by any member, so that arrays of the
> struct type work.
yes but the fields will be closer together and that might be faster cache wise
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070313/38a55f6c/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list