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 0352C44D1A for ; Thu, 17 Nov 2022 20:10:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AF46E68BB78; Thu, 17 Nov 2022 22:10:28 +0200 (EET) Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C6A1268B862 for ; Thu, 17 Nov 2022 22:10:22 +0200 (EET) Received: by mail-oi1-f178.google.com with SMTP id b124so3113040oia.4 for ; Thu, 17 Nov 2022 12:10:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=kbERMEXobvkIih2vl+bcHKPCUoGeaizA0bJNqp/WAd4=; b=NJA2/TlBad49tUuGPxcwqE4jOuab8YlRflcUtniohIPCOPr5P3bwxzk3PvGRmeNlnE 582cvWEhFqhM1RDLH69JK1btySwSCo8jtgzulBxzxEAzufBlDLocqOXuQ5N2s+4Pr4lt 7FqdGovseEpWt6PkACLXw8y3nnAweUX+UIPzCp7wX7Ip25mdZUOvn0UpCjNXCkVEncT7 VOE4zhqAESHUi6jfBFIzMy6NWt7Vt/E4oaFAql+5n+/8gGbNjlYDegIMeF0gdMwYhwBk 4Lg3EPNX6yEbbx7dKgttOd2Z9msVSxFWCh0z3tYVI5/7vrPK/fFpZr21H+BYr/hPjhXs Yt7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kbERMEXobvkIih2vl+bcHKPCUoGeaizA0bJNqp/WAd4=; b=jhde2B9RaHmyS4rJIo02V1fCcK3UMrjltbGgK45N8oxA4jfWRoFoO7k0WcMS4iJ799 VQ2HAeSoVF0oxM8qbQGaZ3g60KJ/FjNQMNvZeyOZ5iVZB/PECjy9p+sEMbZ9zXqsM0Fy PZptSM5GVIBRgSNCE047AiP5THrAauVzN97mTt5/ISubwMoyzPsN1gmgIgckvrYRdTfX BlNA6j6xYD2TtHuluJYJO71Wgq6ebNh5xkAhp2JDcPdvNqDI6DAjOu8e6A/rDLiFWkBf doKJumj4JvtVqYZSFvFMrok58F+X3oi/B0JKWx5b1D/xERJLcXpPfu43LqEM0R+ut/Wy QCZw== X-Gm-Message-State: ANoB5pkdpaMxSKuiWwWOUilLB9dK+YqdvcqFaaRbaHxmMLNa1W82qndh dFMosKZQgNT19NWn0I/fZUuL2NyNEIE= X-Google-Smtp-Source: AA0mqf4vvljL5dFJ6sJNxlxV0TfQgS0tdJ7YAtUYV33wCt4+lVGXJbKFxvrLTmTBGxiDxwTpt1+Srw== X-Received: by 2002:a05:6808:151e:b0:35a:7141:bc06 with SMTP id u30-20020a056808151e00b0035a7141bc06mr4852905oiw.95.1668715820907; Thu, 17 Nov 2022 12:10:20 -0800 (PST) Received: from localhost.localdomain ([181.85.72.69]) by smtp.gmail.com with ESMTPSA id l10-20020a056871068a00b0013d7fffbc3csm898269oao.58.2022.11.17.12.10.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 12:10:20 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 17 Nov 2022 17:10:24 -0300 Message-Id: <20221117201024.551-1-jamrial@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] x86/intmath: use _bzhi_u32 instead of the GCC internal builtin 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: GCC does not recommend using their __builtin_ia32* builtins, so use the Intel defined one instead. Signed-off-by: James Almer --- libavutil/x86/intmath.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h index 8a6b5ae261..2c701646ff 100644 --- a/libavutil/x86/intmath.h +++ b/libavutil/x86/intmath.h @@ -82,7 +82,8 @@ static av_always_inline av_const int ff_ctzll_x86(long long v) #if defined(__BMI2__) #if AV_GCC_VERSION_AT_LEAST(5,1) -#define av_mod_uintp2 __builtin_ia32_bzhi_si +#include +#define av_mod_uintp2 _bzhi_u32 #elif HAVE_INLINE_ASM /* GCC releases before 5.1.0 have a broken bzhi builtin, so for those we * implement it using inline assembly -- 2.38.1 _______________________________________________ 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".