From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12188 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: expectations for a_ctz_64(0) Date: Fri, 1 Dec 2017 00:08:43 +0100 Message-ID: <20171130230843.GU15263@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1512083337 22865 195.159.176.226 (30 Nov 2017 23:08:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2017 23:08:57 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-12204-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 01 00:08:53 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eKXwo-0005ZB-Bh for gllmg-musl@m.gmane.org; Fri, 01 Dec 2017 00:08:50 +0100 Original-Received: (qmail 28626 invoked by uid 550); 30 Nov 2017 23:08:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 28605 invoked from network); 30 Nov 2017 23:08:54 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:12188 Archived-At: * Andre McCurdy [2017-11-30 14:41:32 -0800]: > Currently the generic and aarch64 versions of a_ctz_64() give > different results for 0: > > a_ctz_64_generic(0) : 0 > a_ctz_64_aarch64(0) : 64 > > That doesn't matter for the ffs functions, but for the other users of > a_ctz_l and a_ctz_64 (ie malloc and qsort) it's less clear. > > Does musl rely on a specific behaviour? no, that would be a bug. same for clz