double fmax(double x, double y) { if(x>y) return x; return y; } float fmaxf(float x, float y) { if(x>y) return x; return y; }