[FFmpeg-devel] [PATCH v2] lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang

Michael Niedermayer michael at niedermayer.cc
Wed Aug 23 23:52:09 EEST 2023


On Fri, Aug 18, 2023 at 10:14:04PM -0400, Brad Smith wrote:
> lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang
> 
> Add a check for the existence of the vec_xl() function. Clang provides
> the function even with VSX not enabled.
> 
> v2: test for function if AltiVec is enabled instead of with AltiVec and without VSX
> ---
>  configure                        | 8 ++++++++
>  libswscale/ppc/yuv2rgb_altivec.c | 4 ++--
>  2 files changed, 10 insertions(+), 2 deletions(-)

Has this been tested on an affected platform ?
I mean the function is provided but does it also work ?

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230823/531a9aef/attachment.sig>


More information about the ffmpeg-devel mailing list