Last change
on this file since 466 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
571 bytes
|
Rev | Line | |
---|
[444] | 1 | |
---|
| 2 | /* @(#)z_log10f.c 1.0 98/08/13 */ |
---|
| 3 | /****************************************************************** |
---|
| 4 | * Logarithm |
---|
| 5 | * |
---|
| 6 | * Input: |
---|
| 7 | * x - floating point value |
---|
| 8 | * |
---|
| 9 | * Output: |
---|
| 10 | * logarithm of x |
---|
| 11 | * |
---|
| 12 | * Description: |
---|
| 13 | * This routine returns the logarithm of x (base 10). |
---|
| 14 | * |
---|
| 15 | *****************************************************************/ |
---|
| 16 | |
---|
| 17 | #include "fdlibm.h" |
---|
| 18 | #include "zmath.h" |
---|
| 19 | |
---|
| 20 | float |
---|
| 21 | log10f (float x) |
---|
| 22 | { |
---|
| 23 | return (logarithmf (x, 1)); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | #ifdef _DOUBLE_IS_32BITS |
---|
| 27 | |
---|
| 28 | double log10 (double x) |
---|
| 29 | { |
---|
| 30 | return (double) log10f ((float) x); |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | #endif /* defined(_DOUBLE_IS_32BITS) */ |
---|
Note: See
TracBrowser
for help on using the repository browser.