mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
util: Add log2() definition for MSC.
This commit is contained in:
parent
1bfe7c36ba
commit
50357ad351
1 changed files with 5 additions and 0 deletions
|
|
@ -161,6 +161,11 @@ static INLINE float logf( float f )
|
|||
return (float) log( (double) f );
|
||||
}
|
||||
|
||||
static INLINE double log2( double x )
|
||||
{
|
||||
return log( x ) / log( 2.0 );
|
||||
}
|
||||
|
||||
#else
|
||||
/* Work-around an extra semi-colon in VS 2005 logf definition */
|
||||
#ifdef logf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue