[FFmpeg-devel] [flamefest-start] A little something on MMX/SSE intrinsics
Michael Niedermayer
michaelni
Wed Feb 27 23:30:17 CET 2008
On Thu, Feb 28, 2008 at 12:04:14AM +0200, ?smail D?nmez wrote:
> On Wed, Feb 27, 2008 at 11:33 PM, M?ns Rullg?rd <mans at mansr.com> wrote:
> > Michael Niedermayer <michaelni at gmx.at> writes:
> >
> > > On Wed, Feb 27, 2008 at 03:29:56PM -0500, Alexander Strange wrote:
> >
> > >> I don't think anyone can get Altivec asm to work better than
> > >> intrinsics on more than one CPU - PPC is really, really
> > >> scheduling-sensitive, especially the G5 and Cell.
> > >
> > > Until i see benchmarks id guess gcc+intrinsics will be slower than
> > > unsheduled naively written asm()
> >
> > That depends on the CPU. Some CPUs are quite particular about
> > instruction scheduling.
> >
> >
> > >> I guess you can always try, though, but don't do anything to
> > >> discourage people who know altivec from adding more. There's still a
> > >> lot missing from H.264.
> > >
> > > Code is either well written or should be rejected.
> > > Intrinsics != well written.
> >
> > That's where you're wrong. Code using intrinsics can be well-written.
> > The problem is not the code, but the compiler.
>
> Intrinsics can also be analyzed easily by the compiler so they get
> optimized easily where as its not possible for plain asm.
Thats like giving a painting from Leonardo da Vinci to a wild boar so it can
correct the fine details.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080227/95229c9a/attachment.pgp>
More information about the ffmpeg-devel
mailing list