debian/external_deps/fetk/punc/src/vf2c/d_lg10.c
raw| 1 | #include "f2c.h" |
| 2 | |
| 3 | #define log10e 0.43429448190325182765 |
| 4 | |
| 5 | #ifdef KR_headers |
| 6 | double log(); |
| 7 | double d_lg10(x) doublereal *x; |
| 8 | #else |
| 9 | #undef abs |
| 10 | #include "math.h" |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | double d_lg10(doublereal *x) |
| 15 | #endif |
| 16 | { |
| 17 | return( log10e * log(*x) ); |
| 18 | } |
| 19 | #ifdef __cplusplus |
| 20 | } |
| 21 | #endif |