mirror of
https://github.com/opnsense/src.git
synced 2026-03-31 23:15:10 -04:00
previous revision. Use log10f() instead of log10(). log10f() is currently slightly slower than log10() on P5's, but it is potentially significantly faster. Fixed declaration of the C function used in the (unused?) KR_headers case.
13 lines
169 B
C
13 lines
169 B
C
#include "f2c.h"
|
|
|
|
#ifdef KR_headers
|
|
float log10f();
|
|
double r_lg10(x) real *x;
|
|
#else
|
|
#undef abs
|
|
#include "math.h"
|
|
double r_lg10(real *x)
|
|
#endif
|
|
{
|
|
return( log10f(*x) );
|
|
}
|