1 2 3 4 5 6 7
#include <math.h> double fdim (double x, double y) { return (isgreater(x, y) ? (x - y) : 0.0); }