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