From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6075 invoked from network); 2 Jan 2024 10:16:38 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 2 Jan 2024 10:16:38 -0000 Received: (qmail 7725 invoked by uid 550); 2 Jan 2024 10:15:22 -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 7702 invoked from network); 2 Jan 2024 10:15:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704190583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VjtTnqdbCYGubXsZhsQqKeLtI2k0GVavAKSrWkYtKRA=; b=cSxMyid3jC1KRzSwO7Tc2xlzHHRJtu+RRLigCiCH3N7JYeBsyPr9guRpxr9ZR/NoAah7+A d7yb86FVhYX1HLf0GxkaBlw7AFbiihC6nnuaR4pzq4TuVMGk37OcKCbFE+qH36DTzsid73 neQgGZjPAz8mlyuzHDhg2WPP5S3D5Vc= X-MC-Unique: lJrr_pSsNgKw4f1S14UJQA-1 From: Florian Weimer To: Rich Felker Cc: John M , musl@lists.openwall.com References: <20240101134309.GN1427497@port70.net> <20240101174752.GL4163@brightrain.aerifal.cx> Date: Tue, 02 Jan 2024 11:16:15 +0100 In-Reply-To: <20240101174752.GL4163@brightrain.aerifal.cx> (Rich Felker's message of "Mon, 1 Jan 2024 12:47:53 -0500") Message-ID: <87plyk11n4.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Subject: Re: [musl] Wrong rounding in printf when precision is not set to max * Rich Felker: > Note that, even then, there are lots of gotchas. The x87's "single" > and "double" modes are not actually IEEE single and double, but > nonstandard types with the IEEE significand precision but excess > exponent range that's truncated via double-rounding whenever the > intermediate is spilled to memory. Doesn't setting the control word avoid double rounding? Thanks, Florian