Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2003 00:52:37 +0100
From:      Till Riedel <till@f111.hadiko.de>
To:        freebsd-current@FreeBSD.ORG
Cc:        David Schultz <das@FreeBSD.ORG>
Subject:   Re: libm problem
Message-ID:  <20030321235237.GA8097@f111.hadiko.de>
In-Reply-To: <20030319131317.GA670@HAL9000.homeunix.com>
References:  <20030318173051.GA2322@f111.hadiko.de> <20030319131317.GA670@HAL9000.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> >   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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030321235237.GA8097>