1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. 2 * 3 * Permission to use, copy, modify, and distribute this software 4 * is freely granted, provided that this notice is preserved. 5 */ 6 7 #include "fdlibm.h" 8 fminf(float x,float y)9float fminf(float x, float y) 10 { 11 if (issignaling(x) || issignaling(y)) 12 return x + y; 13 14 if (isnan(x)) 15 return y; 16 17 if (isnan(y)) 18 return x; 19 20 return x < y ? x : y; 21 } 22 23 _MATH_ALIAS_f_ff(fmin) 24