From owner-freebsd-current Fri Mar 21 15:53:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC3BA37B401; Fri, 21 Mar 2003 15:53:10 -0800 (PST) Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 096AF43F85; Fri, 21 Mar 2003 15:53:10 -0800 (PST) (envelope-from till@f111.hadiko.de) Received: from f111.hadiko.de (hadif111.hadiko.uni-karlsruhe.de [172.20.42.141]) by mailgate.rz.uni-karlsruhe.de with esmtp (Exim 3.36 #1) id 18wWJx-0006gX-00; Sat, 22 Mar 2003 00:53:09 +0100 Received: from f111.hadiko.de (localhost [127.0.0.1]) by f111.hadiko.de (8.12.7/8.12.8) with ESMTP id h2LNqcNN008153; Fri, 21 Mar 2003 23:52:38 GMT (envelope-from till@f111.hadiko.de) Received: (from till@localhost) by f111.hadiko.de (8.12.7/8.12.8/Submit) id h2LNqb64008152; Sat, 22 Mar 2003 00:52:37 +0100 (CET) Date: Sat, 22 Mar 2003 00:52:37 +0100 From: Till Riedel To: freebsd-current@FreeBSD.ORG Cc: David Schultz Subject: Re: libm problem Message-ID: <20030321235237.GA8097@f111.hadiko.de> References: <20030318173051.GA2322@f111.hadiko.de> <20030319131317.GA670@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030319131317.GA670@HAL9000.homeunix.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > res=pow((float)base,(float)dim); this is actually not a smart thing. it was cut and paste from libvorbis. pow is a function for doubles. if you i use powf everything works fine. res=pow((double)base,(double)dim) however still gives 1 > the output of 'print/x {int}&res' right after the call to pow(). that means 0x0 if i use double for res (, or 0x3f800000 if i stay with the float example.) till ps: i am pretty sure that my -O2 is turned off in my world, because that was my first guess as well. However, i will recompile tomorrow ... and hopefully all trouble is gone. At least after using powf i can listen to my music again :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message