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

Michael Niedermayer michaelni
Sat Jan 15 12:21:20 CET 2011

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

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110115/4a0836a6/attachment.pgp>

More information about the ffmpeg-devel mailing list