d3dx9: Check for missing log2 function.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2e9ca4626e
commit
d321cdcd28
|
@ -104,7 +104,11 @@ static double pres_log(double *args, int n)
|
|||
if (v == 0.0)
|
||||
return 0.0;
|
||||
else
|
||||
#ifdef HAVE_LOG2
|
||||
return log2(v);
|
||||
#else
|
||||
return log(v) / log(2);
|
||||
#endif
|
||||
}
|
||||
|
||||
#define PRES_OPCODE_MASK 0x7ff00000
|
||||
|
|
Loading…
Reference in New Issue