source:
azure_iot_hub/trunk/musl-1.1.18/src/math/logbf.c@
388
Last change on this file since 388 was 388, checked in by , 5 years ago | |
---|---|
|
|
File size: 130 bytes |
Rev | Line | |
---|---|---|
[388] | 1 | #include <math.h> |
2 | ||
3 | float logbf(float x) | |
4 | { | |
5 | if (!isfinite(x)) | |
6 | return x * x; | |
7 | if (x == 0) | |
8 | return -1/(x*x); | |
9 | return ilogbf(x); | |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.