version 1.7, 1997/10/09 11:35:53 |
version 1.8, 1999/07/02 15:37:45 |
|
|
* |
* |
* Developed at SunPro, a Sun Microsystems, Inc. business. |
* Developed at SunPro, a Sun Microsystems, Inc. business. |
* Permission to use, copy, modify, and distribute this |
* Permission to use, copy, modify, and distribute this |
* software is freely granted, provided that this notice |
* software is freely granted, provided that this notice |
* is preserved. |
* is preserved. |
* ==================================================== |
* ==================================================== |
*/ |
*/ |
|
|
__RCSID("$NetBSD$"); |
__RCSID("$NetBSD$"); |
#endif |
#endif |
|
|
/* |
/* |
* wrapper remainder(x,p) |
* wrapper remainder(x,p) |
*/ |
*/ |
|
|
Line 35 __RCSID("$NetBSD$"); |
|
Line 35 __RCSID("$NetBSD$"); |
|
double z; |
double z; |
z = __ieee754_remainder(x,y); |
z = __ieee754_remainder(x,y); |
if(_LIB_VERSION == _IEEE_ || isnan(y)) return z; |
if(_LIB_VERSION == _IEEE_ || isnan(y)) return z; |
if(y==0.0) |
if(y==0.0) |
return __kernel_standard(x,y,28); /* remainder(x,0) */ |
return __kernel_standard(x,y,28); /* remainder(x,0) */ |
else |
else |
return z; |
return z; |