[FFmpeg-cvslog] r12165 - trunk/libavcodec/dsputil.c

Måns Rullgård mans
Thu Feb 21 22:22:38 CET 2008


Uoti Urpala <uoti.urpala at pp1.inet.fi> writes:

> On Thu, 2008-02-21 at 16:14 -0500, Rich Felker wrote:
>> This depends on the gcc version and -f options, particularly 'unit at
>> a time'. It's default with -O2 and higher (maybe even -O1) in recent
>> gcc releases but this increases the amount of memory required to
>> compile by (typically) 2-5x and it's ugly to rely on it.
>
> You're worrying about a constant being optimized out WHEN COMPILING
> WITHOUT OPTIMIZATION? That's nonsense.
>
> Also the code does NOT "rely" on the optimization in any way. It will
> work perfectly correctly without it. It may be less optimized if
> optimization is not enabled, but that shouldn't come as much of a
> surprise...

I might add that on most non-x86 architectures, using an integer
constant like those will compile into a load from some unnamed
location.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list