Commit d321cdcd authored by Alexandre Julliard's avatar Alexandre Julliard

d3dx9: Check for missing log2 function.

parent 2e9ca462
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment