From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id 419b82b6 for ; Tue, 14 Jan 2020 17:59:34 +0000 (UTC) Received: (qmail 20431 invoked by uid 550); 14 Jan 2020 17:59:32 -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 20410 invoked from network); 14 Jan 2020 17:59:32 -0000 Date: Tue, 14 Jan 2020 20:59:21 +0300 (MSK) From: Alexander Monakov To: musl@lists.openwall.com In-Reply-To: <20200109210003.GO23985@port70.net> Message-ID: References: <20200106174346.6489-1-amonakov@ispras.ru> <20200109170002.GW30412@brightrain.aerifal.cx> <20200109210003.GO23985@port70.net> User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [musl] [PATCH] math: move i386 sqrtf to C On Thu, 9 Jan 2020, Szabolcs Nagy wrote: > c99 required cast at return, but that was considered to be > a bug so in c11 it's no longer required: return now must > round This is the interpretation that GCC uses (return statements imply removal of excess precision), but I wonder where the standard actually says that: afaics N1570 still has the same footnote in 6.8.6.4 that ends with "A cast may be used to remove this extra range and precision." Alexander