[FFmpeg-devel] [RFC] move wmv2.c to its own file
Denis Fortin
fortin
Sat Jun 9 20:30:50 CEST 2007
Guillaume POIRIER a ?crit :
> Hi,
>
> On 6/9/07, Denis Fortin <fortin at nerim.net> wrote:
>
>> I tried compiling with and without inline (version gcc 4.0.4 20060904):
>>
>> ed519eaca0e75617f6f0bf6f93395f5b94a2d62a ffmpeg_inline
>> ed519eaca0e75617f6f0bf6f93395f5b94a2d62a ffmpeg_noinline
>>
>> FWIW benchmarks (1500 frames) :
>> inline :
>> bench: utime=17.829s
>> bench: utime=17.681s
>> bench: utime=18.637s
>> bench: utime=17.709s
>> bench: utime=17.961s
>> bench: utime=18.021s
>> bench: utime=17.989s
>> bench: utime=21.597s
>> bench: utime=18.349s
>> bench: utime=17.973s
>>
>> noinline :
>> bench: utime=17.845s
>> bench: utime=17.813s
>> bench: utime=17.797s
>> bench: utime=17.881s
>> bench: utime=17.661s
>> bench: utime=17.909s
>> bench: utime=17.801s
>> bench: utime=17.801s
>> bench: utime=18.221s
>> bench: utime=17.845s
>>
>> I guess in this case inline keyword is ignored.
>
> In case you didn't know, the "inline" keyword is specified by C
> standard as giving a _hint_ to the compiler, so, yeah, in practice, it
> _can_ be ignored .
>
> Guillaume
Yes i'm not surprised by that (given the size of the function). But i
did a benchmark anyway since it was asked.
Denis
More information about the ffmpeg-devel
mailing list