From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29687 invoked by alias); 29 Jul 2003 19:35:41 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 29672 invoked from network); 29 Jul 2003 19:35:28 -0000 Received: from unknown (HELO mailout09.sul.t-online.com) (194.25.134.84) by sources.redhat.com with SMTP; 29 Jul 2003 19:35:28 -0000 Received: from fwd07.aul.t-online.de by mailout09.sul.t-online.com with smtp id 19haFr-0007Nn-08; Tue, 29 Jul 2003 21:35:27 +0200 Received: from kolme (rfE2RBZdQebRPa9uQDHM4fnGXUnEXgmx0Fr-bw0iFAsNPwvJYhL7cV@[80.138.151.138]) by fmrl07.sul.t-online.com with esmtp id 19haFe-1xeUTo0; Tue, 29 Jul 2003 21:35:14 +0200 Received: from goofy.hamnixda.de ([192.168.100.249] helo=goofy) by kolme with esmtp (Exim 3.35 #1 (Debian)) id 19haFb-0000XK-00; Tue, 29 Jul 2003 21:35:11 +0200 Received: from richard (helo=localhost) by goofy with local-esmtp (Exim 3.36 #1 (Debian)) id 19haFb-0000K4-00; Tue, 29 Jul 2003 21:35:11 +0200 Date: Tue, 29 Jul 2003 20:33:00 -0000 From: Richard Guenther To: Gabriel Dos Reis cc: gcc@gcc.gnu.org Subject: Re: std::pow implementation In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Seen: false X-ID: rfE2RBZdQebRPa9uQDHM4fnGXUnEXgmx0Fr-bw0iFAsNPwvJYhL7cV@t-dialin.net X-SW-Source: 2003-07/txt/msg02070.txt.bz2 On 29 Jul 2003, Gabriel Dos Reis wrote: > | Gabriel Dos Reis wrote:- > | > | > don't obfuscate the library. I just checked what icc does to the loop in __cmath_power() and it is not able to unroll it, too. I suspect this loop is already obfuscation of the library to some degree then :) But icc has the same problem with std::pow(T, int) due to similar implementation. It does optimize ::pow(T, int) though, as we do. Richard.