From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21568 invoked by alias); 27 Oct 2011 14:58:06 -0000 Received: (qmail 21556 invoked by uid 22791); 27 Oct 2011 14:58:06 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Oct 2011 14:57:52 +0000 Received: by faas16 with SMTP id s16so3142648faa.20 for ; Thu, 27 Oct 2011 07:57:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.76.135 with SMTP id c7mr27652440fak.14.1319727471439; Thu, 27 Oct 2011 07:57:51 -0700 (PDT) Received: by 10.152.2.71 with HTTP; Thu, 27 Oct 2011 07:57:51 -0700 (PDT) In-Reply-To: References: <4EA93A2E.9010400@oracle.com> Date: Thu, 27 Oct 2011 16:07:00 -0000 Message-ID: Subject: Re: [v3] Fix libstdc++/50880 From: Gabriel Dos Reis To: Paolo Carlini Cc: "gcc-patches@gcc.gnu.org" , "libstdc++" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg02478.txt.bz2 On Thu, Oct 27, 2011 at 8:21 AM, Paolo Carlini wrote: > Hi again, >> >> Hmm, why is the test of the form x < 0.0, and not testing the sign of x? > > Actually, we can as well use the std::abs, no? > > Paolo The point of using sign is so that signed zero is not mischaracterized, especially when cut branch is at issue.