2001-11-01 Arati Dikey <aratidikey@hotmail.com>
* libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
        * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
			
			
This commit is contained in:
		| @@ -1,3 +1,10 @@ | |||||||
|  | 2001-11-01  Arati Dikey  <aratidikey@hotmail.com> | ||||||
|  |  | ||||||
|  | 	* libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro. | ||||||
|  | 	[_DOUBLE_IS_32BITS](isinf): New function that calls isinff. | ||||||
|  | 	* libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro. | ||||||
|  | 	[_DOUBLE_IS_32BITS](isnan): New function that calls isnanf. | ||||||
|  |  | ||||||
| 2001-10-24  Christopher Faylor  <cgf@redhat.com> | 2001-10-24  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* libc/stdio/fseek.c: Reset pointer to buffer base | 	* libc/stdio/fseek.c: Reset pointer to buffer base | ||||||
|   | |||||||
| @@ -18,7 +18,9 @@ | |||||||
| #include "fdlibm.h" | #include "fdlibm.h" | ||||||
| #include "zmath.h" | #include "zmath.h" | ||||||
|  |  | ||||||
| int isinff (float x) | int  | ||||||
|  | _DEFUN (isinff, (float), | ||||||
|  | 	float x) | ||||||
| { | { | ||||||
|   __uint32_t wx; |   __uint32_t wx; | ||||||
|   int exp; |   int exp; | ||||||
| @@ -31,3 +33,16 @@ int isinff (float x) | |||||||
|   else |   else | ||||||
|     return (0); |     return (0); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | #ifdef _DOUBLE_IS_32BITS | ||||||
|  |  | ||||||
|  | int | ||||||
|  | _DEFUN (isinf, (double), | ||||||
|  |         double x) | ||||||
|  | { | ||||||
|  |   return isinff ((float) x); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #endif /* defined(_DOUBLE_IS_32BITS) */ | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -18,7 +18,9 @@ | |||||||
| #include "fdlibm.h" | #include "fdlibm.h" | ||||||
| #include "zmath.h" | #include "zmath.h" | ||||||
|  |  | ||||||
| int isnanf (float x) | int | ||||||
|  | _DEFUN (isnanf, (float), | ||||||
|  |         float x) | ||||||
| { | { | ||||||
|   __int32_t wx; |   __int32_t wx; | ||||||
|   int exp; |   int exp; | ||||||
| @@ -31,3 +33,16 @@ int isnanf (float x) | |||||||
|   else |   else | ||||||
|     return (0); |     return (0); | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | #ifdef _DOUBLE_IS_32BITS | ||||||
|  |  | ||||||
|  | int | ||||||
|  | _DEFUN (isnan, (double), | ||||||
|  |         double x) | ||||||
|  | { | ||||||
|  |   return isnanf((float) x); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #endif /* defined(_DOUBLE_IS_32BITS) */ | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user