[FFmpeg-devel] [PATCH v3] libswscale/ppc: VSX-optimize 9-16 bit yuv2planeX

Lauri Kasanen cand at gmx.com
Thu Jan 10 11:48:30 EET 2019


On Wed, 9 Jan 2019 22:26:25 +0100
Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> > +#ifdef __GNUC__
> > +            // GCC does not support vmuluwm yet. Bug open.
> > +            __asm__("vmuluwm %0, %1, %2" : "=v"(vtmp) : "v"(vin32l),
> > "v"(vfilter[j]));
> > +            vleft = vec_add(vleft, vtmp);
> > +            __asm__("vmuluwm %0, %1, %2" : "=v"(vtmp) : "v"(vin32r),
> > "v"(vfilter[j]));
> > +            vright = vec_add(vright, vtmp);
> > +#else
> > +            // No idea which compilers this works in, untested. Copied from
> > libsimdpp
> > +            vtmp = vec_vmuluwm(vin32l, vfilter[j]);
> > +            vleft = vec_add(vleft, vtmp);
> > +            vtmp = vec_vmuluwm(vin32r, vfilter[j]);
> > +            vright = vec_add(vright, vtmp);
> > +#endif
> 
> Is there no xlc installed on your test system?
> I suspect an earlier patch from you already
> broke xlc compilation...

No, I don't really care about proprietary compilers. You reported
previously that xlc created invalid code anyway?

- Lauri


More information about the ffmpeg-devel mailing list