[FFmpeg-devel] [PATCH] Make img_tags fall into .rodata
Fri May 2 19:53:03 CEST 2008
On Fri, May 02, 2008 at 07:48:35PM +0200, Diego 'Flameeyes' Petten? wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> > Why would we want it to be a power of 2?
> Access to the N-th element of an array for the compiler is
> *(&array + N*sizeof(array))
> when N is a power of 2, it would just be a shift to the right, rather
> than a multiplication. On every architecture I know a bit of, shift to
> right is faster than multiplication.
My question is still the same but let me rewrite it more clearly.
Why do we want to trade size against speed here?
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel