From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27034 invoked by alias); 14 Mar 2012 20:52:07 -0000 Received: (qmail 27016 invoked by uid 22791); 14 Mar 2012 20:52:05 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail4-relais-sop.national.inria.fr (HELO mail4-relais-sop.national.inria.fr) (192.134.164.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Mar 2012 20:51:50 +0000 Received: from ip-253.net-81-220-141.rev.numericable.fr (HELO laptop-mg.local) ([81.220.141.253]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Mar 2012 21:51:48 +0100 Date: Wed, 14 Mar 2012 20:52:00 -0000 From: Marc Glisse Reply-To: gcc@gcc.gnu.org To: "Joseph S. Myers" cc: Jeff Law , libc-alpha@sourceware.org, gcc@gcc.gnu.org, Geert Bosch , Christoph Lauter Subject: Re: The state of glibc libm In-Reply-To: Message-ID: References: <20120314143045.GG3804@xvii.vinc17.org> <4F60B64D.1020606@redhat.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg00214.txt.bz2 On Wed, 14 Mar 2012, Joseph S. Myers wrote: > I'd say that "better performance with the potential loss of accuracy" > should be covered by -ffast-math - that GCC should generate direct use of > fsin/fcos instructions for sin/cos for -O2 -funsafe-math-optimizations on > x86_64, as it does on x86, unless there is some reason to think they would > perform worse than the out-of-line implementation. Last time I did some timings (maybe 4 years ago), for double, fsin was slower than the libm software implementation compiled for x87, which was itself slower than the same implementation compiled for sse. And the software implementation was more precise than fsin. My conclusion was to ignore fsin from then on. -- Marc Glisse