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 53EB947AEE for ; Thu, 30 May 2024 07:55:01 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 600D568D499; Thu, 30 May 2024 10:54:59 +0300 (EEST) Received: from 6.mo581.mail-out.ovh.net (6.mo581.mail-out.ovh.net [188.165.39.218]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B154A68D461 for ; Thu, 30 May 2024 10:54:52 +0300 (EEST) Received: from director6.ghost.mail-out.ovh.net (unknown [10.108.25.209]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 4Vqdnm0SfRz1H37 for ; Thu, 30 May 2024 07:54:52 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-knp94 (unknown [10.111.182.117]) by director6.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 920081FD3D for ; Thu, 30 May 2024 07:54:51 +0000 (UTC) Received: from courmont.net ([37.59.142.98]) by ghost-submission-6684bf9d7b-knp94 with ESMTPSA id mbJ/HMswWGb++g0A7SEETQ (envelope-from ) for ; Thu, 30 May 2024 07:54:51 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-98R0020a5bf3e4-b264-44e2-a0a2-af011c9b371b, 6311F10F99E3DDFF5DFC025E3D99FC28D101E750) smtp.auth=postmaster@courmont.net X-OVh-ClientIp: 37.33.237.83 Date: Thu, 30 May 2024 10:54:46 +0300 From: =?ISO-8859-1?Q?R=E9mi_Denis-Courmont?= To: FFmpeg development discussions and patches User-Agent: K-9 Mail for Android In-Reply-To: <0c19df65a8142e2cf96fbc07a92bf44bb32f1107.camel@haerdin.se> References: <27e5f614496e729f68326a31c3ac70d5923cfa97.camel@haerdin.se> <0c19df65a8142e2cf96fbc07a92bf44bb32f1107.camel@haerdin.se> Message-ID: <14560CCC-A959-44E7-A2E8-764DBE6478C0@remlab.net> MIME-Version: 1.0 X-Ovh-Tracer-Id: 3515903934482553337 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdekfedgieelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomheptformhhiucffvghnihhsqdevohhurhhmohhnthcuoehrvghmihesrhgvmhhlrggsrdhnvghtqeenucggtffrrghtthgvrhhnpefgueelhfefffegveegteegueehgeduvdffledtjeegteduvddtjefhhfegtedvjeenucfkphepuddvjedrtddrtddruddpfeejrdeffedrvdefjedrkeefpdefjedrheelrddugedvrdelkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomheprhgvmhhisehrvghmlhgrsgdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhgpdfovfetjfhoshhtpehmohehkedupdhmohguvgepshhmthhpohhuth Subject: Re: [FFmpeg-devel] [PATCH 4/5] lavu/intmath.h: Fix UB in ff_ctz_c() and ff_ctzll_c() 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: Can't we just use the compiler built-ins here? AFAIK, they (GCC, LLVM) use the same algorithm if the CPU doesn't support native CTZ. And they will pick the right instruction if CPU does have CTZ. I get it that maybe it wasn't working so well 20 years ago, but we've increased compiler version requirements since then. _______________________________________________ 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".