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

Jason Garrett-Glaser jason
Sat Jan 15 08:53:49 CET 2011


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.

Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sse_av_zero128.diff
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110114/13942814/attachment.bin>



More information about the ffmpeg-devel mailing list