diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-10 22:38:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-10 22:38:12 +0000 |
commit | 5a30d45cedc93970c728636b6dc6368266985c1d (patch) | |
tree | 9ab7f974454b3ac8b16ab55414d6f4488341ab9e /lib/libc/arch/sparc64 | |
parent | f8a2c86989b396f318a87ce7f6c1d95b3c911d42 (diff) |
Use the LBL isnan() and isinf() on all platforms with ieee floating point.
Diffstat (limited to 'lib/libc/arch/sparc64')
-rw-r--r-- | lib/libc/arch/sparc64/gen/isinf.c | 9 | ||||
-rw-r--r-- | lib/libc/arch/sparc64/gen/isnan.c | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lib/libc/arch/sparc64/gen/isinf.c b/lib/libc/arch/sparc64/gen/isinf.c index 2bdf5bda0fa..1bd6b1d4e92 100644 --- a/lib/libc/arch/sparc64/gen/isinf.c +++ b/lib/libc/arch/sparc64/gen/isinf.c @@ -1,4 +1,5 @@ -/* $OpenBSD: isinf.c,v 1.1 2001/08/29 01:41:29 art Exp $ */ +/* $OpenBSD: isinf.c,v 1.2 2001/09/10 22:38:11 millert Exp $ */ + /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -36,6 +37,10 @@ * SUCH DAMAGE. */ +#if defined(LIBC_SCCS) && !defined(lint) +static char rcsid[] = "$OpenBSD: isinf.c,v 1.2 2001/09/10 22:38:11 millert Exp $"; +#endif /* LIBC_SCCS and not lint */ + #include <sys/types.h> #include <machine/ieee.h> @@ -43,7 +48,7 @@ int isinf(d) double d; { - register struct ieee_double *p = (struct ieee_double *)&d; + struct ieee_double *p = (struct ieee_double *)&d; return (p->dbl_exp == DBL_EXP_INFNAN && p->dbl_frach == 0 && p->dbl_fracl == 0); diff --git a/lib/libc/arch/sparc64/gen/isnan.c b/lib/libc/arch/sparc64/gen/isnan.c index d793b1b7008..93dc7187c3e 100644 --- a/lib/libc/arch/sparc64/gen/isnan.c +++ b/lib/libc/arch/sparc64/gen/isnan.c @@ -1,4 +1,5 @@ -/* $OpenBSD: isnan.c,v 1.1 2001/08/29 01:41:29 art Exp $ */ +/* $OpenBSD: isnan.c,v 1.2 2001/09/10 22:38:11 millert Exp $ */ + /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -36,6 +37,10 @@ * SUCH DAMAGE. */ +#if defined(LIBC_SCCS) && !defined(lint) +static char rcsid[] = "$OpenBSD: isnan.c,v 1.2 2001/09/10 22:38:11 millert Exp $"; +#endif /* LIBC_SCCS and not lint */ + #include <sys/types.h> #include <machine/ieee.h> @@ -43,7 +48,7 @@ int isnan(d) double d; { - register struct ieee_double *p = (struct ieee_double *)&d; + struct ieee_double *p = (struct ieee_double *)&d; return (p->dbl_exp == DBL_EXP_INFNAN && (p->dbl_frach != 0 || p->dbl_fracl != 0)); |