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

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Jan 10 19:08:11 EET 2019


2019-01-10 10:48 GMT+01:00, Lauri Kasanen <cand at gmx.com>:
> 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.

Ok, just wondering which other compilers your comment
above meant...

> You reported previously that xlc created invalid code anyway?

True, I forgot.

Sorry, Carl Eugen


More information about the ffmpeg-devel mailing list