From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id D391A21678 for ; Fri, 12 Apr 2024 21:57:22 +0200 (CEST) Received: (qmail 31780 invoked by uid 550); 12 Apr 2024 19:57:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30711 invoked from network); 12 Apr 2024 19:57:16 -0000 Date: Fri, 12 Apr 2024 15:57:28 -0400 From: Rich Felker To: Peter Ammon Cc: musl@lists.openwall.com Message-ID: <20240412195728.GE4163@brightrain.aerifal.cx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] [PATCH] Fix printf hex float formatting with precision On Thu, Apr 11, 2024 at 06:17:25PM -0700, Peter Ammon wrote: > if (p>=0 && p<(LDBL_MANT_DIG-1+3)/4) { > int re = LDBL_MANT_DIG-1-(p*4); > long double round = 1ULL<