From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joseph Myers Newsgroups: gmane.comp.lib.glibc.alpha Subject: Re: riscv: fmax/fmin sNaN fix Date: Tue, 20 Feb 2018 23:11:47 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Trace: blaine.gmane.org 1519168200 22540 195.159.176.226 (20 Feb 2018 23:10:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2018 23:10:00 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: DJ Delorie , , To: Szabolcs Nagy Original-X-From: libc-alpha-return-90428-glibc-alpha=m.gmane.org@sourceware.org Wed Feb 21 00:09:55 2018 Return-path: Envelope-to: glibc-alpha@blaine.gmane.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; q=dns; s=default; b=oTTLU YA8Yary6KETc0LXAcvQ6PeSXPrStgvODosUlEwrbiMARQ40yOL2LJwzD8crh536t +5bkVu/jSqDYb5cRUYaDmtoDDa+Lmp+7RZddsNNNtjGiThVbUQWzU1z0GOiZnG9C mw/0QOTwyCIA2htP2YYRTTtKieRLagbI6JNZAY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; s=default; bh=OhX94sTS45y yBOoUGkQDQhR1nZY=; b=ZbrujsSNulHePixiD+St3H+CVlpMpcIJczDoIvqYRbf fH+doOe4s576tt+2CBkFAVc8ecc0RhZd51xLgdVSyb2b4Rq+6x9FbX3DLKLcX0HK ON4t2vf0pa70hVC2On+4ur8bl5wj/wcrhspyhUKhleVpSie/3Y8PPf7exqrcEk60 = Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: libc-alpha-owner@sourceware.org Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com In-Reply-To: X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82760 Archived-At: Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoH2n-0005Fu-IM for glibc-alpha@blaine.gmane.org; Wed, 21 Feb 2018 00:09:54 +0100 Received: (qmail 127693 invoked by alias); 20 Feb 2018 23:11:56 -0000 Received: (qmail 126306 invoked by uid 89); 20 Feb 2018 23:11:55 -0000 On Tue, 20 Feb 2018, Szabolcs Nagy wrote: > On 20/02/18 02:57, DJ Delorie wrote: > > > > RISC-V's FPU follows the IEEE spec, not the POSIX spec. This patch > ^^^^^^^^^ > which one? > (the next ieee revision will have different min/max operations) The point (as per ) is that fmax and fmin in TS 18661-1 bind to maxNum and minNum. Those operations are to be removed in IEEE 754-2018 so the C functions will have semantics that no longer have a corresponding IEEE operation (much like e.g. nextafter / nexttoward, which correspond to the Nextafter operation recommended in IEEE 754-1985 but removed in IEEE 754-2008). Instead, the new minimum, minimumNumber, maximum and maximumNumber operations are proposed to have new functions fminimum, fminimum_num, fmaximum, fmaximum_num (and likewise *mag* functions) - but so far there is no public draft of those proposed TS changes (which might in any case more likely be dealt with in the C2x process rather than through a new revision of the TS being produced). -- Joseph S. Myers joseph@codesourcery.com