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:28:50 +0000 (20:28 +0900)
src/gallium/include/pipe/p_util.h

index cb3cd26..0a9e2ef 100644 (file)
@@ -449,7 +449,7 @@ static INLINE float fabsf( float f )
 
 static INLINE float logf( float f ) 
 {
-   return (float) cos( (double) f );
+   return (float) log( (double) f );
 }
 
 #endif