delint
This commit is contained in:
parent
4523c05fa8
commit
7c990e0c7b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: infinity.c,v 1.2 1998/07/26 14:14:15 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.3 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
|
@ -30,4 +30,4 @@
|
|||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on an Alpha (IEEE double format) */
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.2 1998/10/13 14:43:37 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.3 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
|
@ -41,7 +41,7 @@ int
|
|||
isnan(d)
|
||||
double d;
|
||||
{
|
||||
register struct ieee_double *p = (struct ieee_double *)&d;
|
||||
register struct ieee_double *p = (struct ieee_double *)(void *)&d;
|
||||
|
||||
return (p->dbl_exp == DBL_EXP_INFNAN &&
|
||||
(p->dbl_frach || p->dbl_fracl));
|
||||
|
@ -51,7 +51,7 @@ int
|
|||
isinf(d)
|
||||
double d;
|
||||
{
|
||||
register struct ieee_double *p = (struct ieee_double *)&d;
|
||||
register struct ieee_double *p = (struct ieee_double *)(void *)&d;
|
||||
|
||||
return (p->dbl_exp == DBL_EXP_INFNAN &&
|
||||
!p->dbl_frach && !p->dbl_fracl);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: infinity.c,v 1.4 1998/07/26 14:14:15 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.5 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Mark Brinicombe.
|
||||
|
@ -35,4 +35,4 @@
|
|||
|
||||
/* Bytes for +infinity on an arm32 (IEEE double precision) */
|
||||
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.4 1998/10/13 14:43:37 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.5 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Mark Brinicombe
|
||||
|
@ -46,7 +46,7 @@ int
|
|||
isnan(d)
|
||||
double d;
|
||||
{
|
||||
register struct ieee_double *p = (struct ieee_double *)&d;
|
||||
register struct ieee_double *p = (struct ieee_double *)(void *)&d;
|
||||
|
||||
return(p->dbl_exp == DBL_EXP_INFNAN && (p->dbl_frach || p->dbl_fracl));
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ int
|
|||
isinf(d)
|
||||
double d;
|
||||
{
|
||||
register struct ieee_double *p = (struct ieee_double *)&d;
|
||||
register struct ieee_double *p = (struct ieee_double *)(void *)&d;
|
||||
|
||||
return(p->dbl_exp == DBL_EXP_INFNAN && !p->dbl_frach && !p->dbl_fracl);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: infinity.c,v 1.3 1998/07/26 14:14:15 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.4 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: infinity.c,v 1.3 1998/07/26 14:14:15 mycroft Exp $");
|
||||
__RCSID("$NetBSD: infinity.c,v 1.4 1998/11/14 19:31:01 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/* infinity.c */
|
||||
|
@ -10,4 +10,4 @@ __RCSID("$NetBSD: infinity.c,v 1.3 1998/07/26 14:14:15 mycroft Exp $");
|
|||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on a 387 */
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.4 1998/10/13 14:43:37 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.5 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991 The Regents of the University of California.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)isinf.c 5.1 (Berkeley) 3/18/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: isinf.c,v 1.4 1998/10/13 14:43:37 kleink Exp $");
|
||||
__RCSID("$NetBSD: isinf.c,v 1.5 1998/11/14 19:31:01 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -60,7 +60,7 @@ isnan(d)
|
|||
u_int manh : 20;
|
||||
u_int exp : 11;
|
||||
u_int sign : 1;
|
||||
} *p = (struct IEEEdp *)&d;
|
||||
} *p = (struct IEEEdp *)(void *)&d;
|
||||
|
||||
return(p->exp == 2047 && (p->manh || p->manl));
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ isinf(d)
|
|||
u_int manh : 20;
|
||||
u_int exp : 11;
|
||||
u_int sign : 1;
|
||||
} *p = (struct IEEEdp *)&d;
|
||||
} *p = (struct IEEEdp *)(void *)&d;
|
||||
|
||||
return(p->exp == 2047 && !p->manh && !p->manl);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: infinity.c,v 1.4 1998/07/26 14:14:15 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.5 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: infinity.c,v 1.4 1998/07/26 14:14:15 mycroft Exp $");
|
||||
__RCSID("$NetBSD: infinity.c,v 1.5 1998/11/14 19:31:01 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/* infinity.c */
|
||||
|
@ -10,4 +10,4 @@ __RCSID("$NetBSD: infinity.c,v 1.4 1998/07/26 14:14:15 mycroft Exp $");
|
|||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on a 68k */
|
||||
const char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
const char __infinity[] = { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.5 1998/10/13 14:43:37 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.6 1998/11/14 19:31:01 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991 The Regents of the University of California.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "from: @(#)isinf.c 5.1 (Berkeley) 3/18/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: isinf.c,v 1.5 1998/10/13 14:43:37 kleink Exp $");
|
||||
__RCSID("$NetBSD: isinf.c,v 1.6 1998/11/14 19:31:01 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -60,7 +60,7 @@ isnan(d)
|
|||
u_int exp : 11;
|
||||
u_int manh : 20;
|
||||
u_int manl : 32;
|
||||
} *p = (struct IEEEdp *)&d;
|
||||
} *p = (struct IEEEdp *)(void *)&d;
|
||||
|
||||
return(p->exp == 2047 && (p->manh || p->manl));
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ isinf(d)
|
|||
u_int exp : 11;
|
||||
u_int manh : 20;
|
||||
u_int manl : 32;
|
||||
} *p = (struct IEEEdp *)&d;
|
||||
} *p = (struct IEEEdp *)(void *)&d;
|
||||
|
||||
return(p->exp == 2047 && !p->manh && !p->manl);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: infinity.c,v 1.4 1998/07/26 14:14:15 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.5 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
/*
|
||||
* IEEE-compatible infinity.c -- public domain.
|
||||
|
@ -9,7 +9,7 @@
|
|||
|
||||
/* bytes for +Infinity on a MIPS */
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
const char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
const char __infinity[] = { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
#else
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
|
||||
#endif
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/* $NetBSD: infinity.c,v 1.6 1998/07/26 14:14:15 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.7 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: infinity.c,v 1.6 1998/07/26 14:14:15 mycroft Exp $");
|
||||
__RCSID("$NetBSD: infinity.c,v 1.7 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on a ns32k */
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.6 1998/10/13 14:43:37 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.7 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991 The Regents of the University of California.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)isinf.c 5.1 (Berkeley) 3/18/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: isinf.c,v 1.6 1998/10/13 14:43:37 kleink Exp $");
|
||||
__RCSID("$NetBSD: isinf.c,v 1.7 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -60,7 +60,7 @@ isnan(d)
|
|||
u_int manh : 20;
|
||||
u_int exp : 11;
|
||||
u_int sign : 1;
|
||||
} *p = (struct IEEEdp *)&d;
|
||||
} *p = (struct IEEEdp *)(void *)&d;
|
||||
|
||||
return(p->exp == 2047 && (p->manh || p->manl));
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ isinf(d)
|
|||
u_int manh : 20;
|
||||
u_int exp : 11;
|
||||
u_int sign : 1;
|
||||
} *p = (struct IEEEdp *)&d;
|
||||
} *p = (struct IEEEdp *)(void *)&d;
|
||||
|
||||
return(p->exp == 2047 && !p->manh && !p->manl);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: infinity.c,v 1.3 1998/07/26 14:14:15 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.4 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: infinity.c,v 1.3 1998/07/26 14:14:15 mycroft Exp $");
|
||||
__RCSID("$NetBSD: infinity.c,v 1.4 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/* infinity.c */
|
||||
|
@ -10,4 +10,4 @@ __RCSID("$NetBSD: infinity.c,v 1.3 1998/07/26 14:14:15 mycroft Exp $");
|
|||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on a PowerPC */
|
||||
const char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
const char __infinity[] = { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.3 1998/10/13 14:43:37 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.4 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,7 +44,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)isinf.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: isinf.c,v 1.3 1998/10/13 14:43:37 kleink Exp $");
|
||||
__RCSID("$NetBSD: isinf.c,v 1.4 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -61,7 +61,7 @@ int
|
|||
isinf(d)
|
||||
double d;
|
||||
{
|
||||
register struct ieee_double *p = (struct ieee_double *)&d;
|
||||
register struct ieee_double *p = (struct ieee_double *)(void *)&d;
|
||||
|
||||
return (p->dbl_exp == DBL_EXP_INFNAN &&
|
||||
p->dbl_frach == 0 && p->dbl_fracl == 0);
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: infinity.c,v 1.3 1998/07/26 14:14:16 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.4 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: infinity.c,v 1.3 1998/07/26 14:14:16 mycroft Exp $");
|
||||
__RCSID("$NetBSD: infinity.c,v 1.4 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/* infinity.c */
|
||||
|
@ -10,4 +10,4 @@ __RCSID("$NetBSD: infinity.c,v 1.3 1998/07/26 14:14:16 mycroft Exp $");
|
|||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on a sparc */
|
||||
const char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
const char __infinity[] = { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.4 1998/10/13 14:43:38 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.5 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,7 +44,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)isinf.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: isinf.c,v 1.4 1998/10/13 14:43:38 kleink Exp $");
|
||||
__RCSID("$NetBSD: isinf.c,v 1.5 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -61,7 +61,7 @@ int
|
|||
isinf(d)
|
||||
double d;
|
||||
{
|
||||
register struct ieee_double *p = (struct ieee_double *)&d;
|
||||
register struct ieee_double *p = (struct ieee_double *)(void *)&d;
|
||||
|
||||
return (p->dbl_exp == DBL_EXP_INFNAN &&
|
||||
p->dbl_frach == 0 && p->dbl_fracl == 0);
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: infinity.c,v 1.1 1998/09/11 04:56:26 eeh Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.2 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: infinity.c,v 1.1 1998/09/11 04:56:26 eeh Exp $");
|
||||
__RCSID("$NetBSD: infinity.c,v 1.2 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/* infinity.c */
|
||||
|
@ -10,4 +10,4 @@ __RCSID("$NetBSD: infinity.c,v 1.1 1998/09/11 04:56:26 eeh Exp $");
|
|||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on a sparc */
|
||||
const char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
const char __infinity[] = { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isinf.c,v 1.2 1998/10/13 14:43:38 kleink Exp $ */
|
||||
/* $NetBSD: isinf.c,v 1.3 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,7 +44,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)isinf.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: isinf.c,v 1.2 1998/10/13 14:43:38 kleink Exp $");
|
||||
__RCSID("$NetBSD: isinf.c,v 1.3 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -61,7 +61,7 @@ int
|
|||
isinf(d)
|
||||
double d;
|
||||
{
|
||||
register struct ieee_double *p = (struct ieee_double *)&d;
|
||||
register struct ieee_double *p = (struct ieee_double *)(void *)&d;
|
||||
|
||||
return (p->dbl_exp == DBL_EXP_INFNAN &&
|
||||
p->dbl_frach == 0 && p->dbl_fracl == 0);
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: infinity.c,v 1.4 1998/07/26 14:14:16 mycroft Exp $ */
|
||||
/* $NetBSD: infinity.c,v 1.5 1998/11/14 19:31:02 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: infinity.c,v 1.4 1998/07/26 14:14:16 mycroft Exp $");
|
||||
__RCSID("$NetBSD: infinity.c,v 1.5 1998/11/14 19:31:02 christos Exp $");
|
||||
#endif /* not lint */
|
||||
/*
|
||||
* XXX - THIS IS (probably) COMPLETELY WRONG ON VAX!!!
|
||||
|
@ -13,4 +13,4 @@ __RCSID("$NetBSD: infinity.c,v 1.4 1998/07/26 14:14:16 mycroft Exp $");
|
|||
#include <math.h>
|
||||
|
||||
/* bytes for +Infinity on a 387 */
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
|
||||
const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
|
||||
|
|
Loading…
Reference in New Issue