9e2d0733c5
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.
14 lines
169 B
C
14 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) );
|
|
}
|