gallium: Fix log<->cos typo in logf.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 2 Jun 2008 11:16:49 +0000 (20:16 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 2 Jun 2008 11:17:16 +0000 (20:17 +0900)
src/gallium/include/pipe/p_util.h

index 0d8ed167b2a1f6479bc7c7f0284cbbbe64644877..3d8ad48d4fa79465271cdf1c7109ff5628e8728d 100644 (file)
@@ -452,7 +452,7 @@ static INLINE float fabsf( float f )
 
 static INLINE float logf( float f ) 
 {
-   return (float) cos( (double) f );
+   return (float) log( (double) f );
 }
 #endif  /* _INC_MATH */
 #endif