X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=libm%2Fs_isnan.c;h=1bc49cb0285d6d1deae7f5d79e745a558984a345;hb=697dbb016e4bc63d20a7c871a9580e7dce32d1b0;hp=6263d1c3f0ab0a3d742d92740b03e16168352b7e;hpb=0e05d9826e6d32a27392ed9d6fe613ef6cf957a0;p=uclinux-h8%2FuClibc.git diff --git a/libm/s_isnan.c b/libm/s_isnan.c index 6263d1c3f..1bc49cb02 100644 --- a/libm/s_isnan.c +++ b/libm/s_isnan.c @@ -1,4 +1,3 @@ -/* @(#)s_isnan.c 5.1 93/09/24 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -10,10 +9,6 @@ * ==================================================== */ -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: s_isnan.c,v 1.8 1995/05/10 20:47:36 jtc Exp $"; -#endif - /* * isnan(x) returns 1 is x is nan, else 0; * no branching! @@ -22,13 +17,7 @@ static char rcsid[] = "$NetBSD: s_isnan.c,v 1.8 1995/05/10 20:47:36 jtc Exp $"; #include "math.h" #include "math_private.h" -libm_hidden_proto (__isnan) -#ifdef __STDC__ - int __isnan(double x) -#else - int __isnan(x) - double x; -#endif +int __isnan(double x) { int32_t hx,lx; EXTRACT_WORDS(hx,lx,x); @@ -37,9 +26,4 @@ libm_hidden_proto (__isnan) hx = 0x7ff00000 - hx; return (int)(((u_int32_t)hx)>>31); } -libm_hidden_def (__isnan) -weak_alias (__isnan, isnan) -#ifdef NO_LONG_DOUBLE -strong_alias (__isnan, __isnanl) -weak_alias (__isnan, isnanl) -#endif +libm_hidden_def(__isnan)