diff options
author | 2001-09-10 22:38:11 +0000 | |
---|---|---|
committer | 2001-09-10 22:38:11 +0000 | |
commit | 43a48c9ff773ff2f410722e0b7c34a163976701b (patch) | |
tree | c4cb2f3a6b11e6bddcb4162c39785f6427efa0f6 /lib/libc/arch/sparc | |
parent | Use the LBL frexp() on all platforms with ieee floating point. (diff) | |
download | wireguard-openbsd-43a48c9ff773ff2f410722e0b7c34a163976701b.tar.xz wireguard-openbsd-43a48c9ff773ff2f410722e0b7c34a163976701b.zip |
Use the LBL isnan() and isinf() on all platforms with ieee floating point.
Diffstat (limited to 'lib/libc/arch/sparc')
-rw-r--r-- | lib/libc/arch/sparc/gen/isinf.c | 6 | ||||
-rw-r--r-- | lib/libc/arch/sparc/gen/isnan.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/arch/sparc/gen/isinf.c b/lib/libc/arch/sparc/gen/isinf.c index 7103bbb9f1c..35898dc011f 100644 --- a/lib/libc/arch/sparc/gen/isinf.c +++ b/lib/libc/arch/sparc/gen/isinf.c @@ -1,3 +1,5 @@ +/* $OpenBSD: isinf.c,v 1.4 2001/09/10 22:38:11 millert Exp $ */ + /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -36,7 +38,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: isinf.c,v 1.3 1996/08/19 08:17:38 tholo Exp $"; +static char rcsid[] = "$OpenBSD: isinf.c,v 1.4 2001/09/10 22:38:11 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -46,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/sparc/gen/isnan.c b/lib/libc/arch/sparc/gen/isnan.c index 15725959bfe..31a7dfec8f6 100644 --- a/lib/libc/arch/sparc/gen/isnan.c +++ b/lib/libc/arch/sparc/gen/isnan.c @@ -1,3 +1,5 @@ +/* $OpenBSD: isnan.c,v 1.4 2001/09/10 22:38:11 millert Exp $ */ + /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -36,7 +38,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: isnan.c,v 1.3 1996/08/19 08:17:39 tholo Exp $"; +static char rcsid[] = "$OpenBSD: isnan.c,v 1.4 2001/09/10 22:38:11 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -46,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)); |