11 lines
134 B
C
11 lines
134 B
C
|
#include <math.h>
|
||
|
|
||
|
float fdimf(float x, float y)
|
||
|
{
|
||
|
if (isnan(x))
|
||
|
return x;
|
||
|
if (isnan(y))
|
||
|
return y;
|
||
|
return x > y ? x - y : 0;
|
||
|
}
|