newlib-cygwin/winsup/mingw/mingwex/math/fdim.c

8 lines
101 B
C

#include <math.h>
double
fdim (double x, double y)
{
return (isgreater(x, y) ? (x - y) : 0.0);
}