[FFmpeg-devel] [PATCH] Better AV_ZERO128 on x86

Jason Garrett-Glaser jason
Sat Jan 15 18:43:38 CET 2011

On Sat, Jan 15, 2011 at 3:21 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Fri, Jan 14, 2011 at 11:53:49PM -0800, Jason Garrett-Glaser wrote:
>> This patch makes AV_ZERO work under SSE, instead of requiring SSE2.
>> But AV_ZERO still sucks, because it duplicates the pxor/xorps every
>> single time it runs. ?Is there any reason we can't do what x264 does,
>> that is, use intrinsics like ((__m128){0,0,0,0}) to solve the problem?
>> ?This does make gcc (even crappy old gcc) reuse the value instead of
>> calculating it every time.
> of course when the compiler supports it

Are there any compilers that support GCC inline asm but not __m128?


More information about the ffmpeg-devel mailing list