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 0d8ed16..3d8ad48 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