From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 3042746DD6 for ; Fri, 11 Aug 2023 23:51:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BF74368C812; Sat, 12 Aug 2023 02:51:10 +0300 (EEST) Received: from mail.comstyle.com (speedy.comstyle.com [206.51.28.2]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A533B68C6CD for ; Sat, 12 Aug 2023 02:51:03 +0300 (EEST) Received: from mail.comstyle.com (localhost [127.0.0.1]) by mail.comstyle.com (Postfix) with ESMTP id 4RN0tF2NxFz8PbP for ; Fri, 11 Aug 2023 19:51:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=comstyle.com; h=message-id :date:mime-version:subject:to:references:from:in-reply-to :content-type:content-transfer-encoding; s=default; bh=njIcRaz6h GT3fceZ1tRpAyUB3Co=; b=RnpCOQkG/NXfZ7hRr925rWenMQWdcclH3j8zobKOX S35iZ6Yr/pvX5mGPaMf2CZz321BEt5yNxPDqZqmt2vmyNjIJYZjW3KVDuFllaeYG ml/RJ8z950gunhQH60pwuTVMKfXtVTg8bmq9EStyUBUoYU7Lk/CAGBRTRrQNHvpj dQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=comstyle.com; h=message-id :date:mime-version:subject:to:references:from:in-reply-to :content-type:content-transfer-encoding; q=dns; s=default; b=inH e033QmYj4+eNO9cDHnvKspB+fsdVeOPL4/4yJDTY0L8QtS8hiMtcv0gqtz/T8sux 482qxCYElMa1XtJbP25NuU5wh7a2kG4YPur7kxzoKF+744t+nn2POvVgJzRANmbA 5A8hPf4Ty3e+6UpGNSogHZIcE28Hjgh5mx0z70U4= Received: from [192.168.6.81] (unknown [184.147.43.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 4RN0tF1rMCz8PbN for ; Fri, 11 Aug 2023 19:51:01 -0400 (EDT) Message-ID: <2a356e6e-239a-b8f1-ffc9-8553dade6320@comstyle.com> Date: Fri, 11 Aug 2023 19:49:39 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 To: FFmpeg development discussions and patches References: Content-Language: en-US From: Brad Smith In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH] lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Just FYI, we have had this in the OpenBSD and FreeBSD packages for quite awhile to be able to build on powerpc64. On 2023-08-07 9:02 p.m., Brad Smith wrote: > lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang > > libswscale/ppc/yuv2rgb_altivec.c:288:36: error: redeclaration of 'vec_xl' must have the 'overloadable' attribute > --- > libswscale/ppc/yuv2rgb_altivec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c > index 5e1033a973..6ef2441d8a 100644 > --- a/libswscale/ppc/yuv2rgb_altivec.c > +++ b/libswscale/ppc/yuv2rgb_altivec.c > @@ -284,7 +284,7 @@ static inline void cvtyuvtoRGB(SwsContext *c, vector signed short Y, > * ------------------------------------------------------------------------------ > */ > > -#if !HAVE_VSX > +#if !HAVE_VSX && !defined(__clang__) > static inline vector unsigned char vec_xl(signed long long offset, const ubyte *addr) > { > const vector unsigned char *v_addr = (const vector unsigned char *) (addr + offset); > @@ -292,7 +292,7 @@ static inline vector unsigned char vec_xl(signed long long offset, const ubyte * > > return (vector unsigned char) vec_perm(v_addr[0], v_addr[1], align_perm); > } > -#endif /* !HAVE_VSX */ > +#endif /* !HAVE_VSX && !__clang__ */ > > #define DEFCSP420_CVT(name, out_pixels) \ > static int altivec_ ## name(SwsContext *c, const unsigned char **in, \ _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".