1 /* wf_remainder.c -- float version of w_remainder.c.
2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
6 * ====================================================
7 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9 * Developed at SunPro, a Sun Microsystems, Inc. business.
10 * Permission to use, copy, modify, and distribute this
11 * software is freely granted, provided that this notice
13 * ====================================================
17 * wrapper remainderf(x,p)
24 float remainderf(float x
, float y
) /* wrapper remainder */
26 float remainderf(x
,y
) /* wrapper remainder */
31 return __ieee754_remainderf(x
,y
);
35 z
= __ieee754_remainderf(x
,y
);
36 if(_LIB_VERSION
== _IEEE_
|| isnanf(y
)) return z
;
40 exc
.name
= "remainderf";
45 if (_LIB_VERSION
== _POSIX_
)
47 else if (!matherr(&exc
)) {
52 return (float)exc
.retval
;
58 #ifdef _DOUBLE_IS_32BITS
61 double remainder(double x
, double y
)
67 return (double) remainderf((float) x
, (float) y
);
70 #endif /* defined(_DOUBLE_IS_32BITS) */