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 
fdimf(float x,float y)9 float fdimf(float x, float y)
10 {
11   if (isnanf(x) || isnanf(y)) return(x+y);
12 
13   float z = x > y ? x - y : 0.0f;
14   if (!isinf(x) && !isinf(y))
15     z = check_oflowf(z);
16   return z;
17 }
18 
19 _MATH_ALIAS_f_ff(fdim)
20