mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 23:19:00 +00:00
5d8d8dd3b6
log10(x) = log10e * log(x). This fixes some small (one or two ULP) inaccuracies. Found by: ucbtest
14 lines
180 B
C
14 lines
180 B
C
#include "f2c.h"
|
|
|
|
#ifdef KR_headers
|
|
double log10();
|
|
double d_lg10(x) doublereal *x;
|
|
#else
|
|
#undef abs
|
|
#include "math.h"
|
|
double d_lg10(doublereal *x)
|
|
#endif
|
|
{
|
|
return( log10(*x) );
|
|
}
|