fp_except => fp_except_t for consistancy with the i386 and the tradition

C methoid of nameing types.
This commit is contained in:
David E. O'Brien 2000-05-10 19:00:45 +00:00
parent 7b7f33c4c3
commit 8d1d19d347
5 changed files with 17 additions and 12 deletions

View File

@ -1,4 +1,5 @@
/* $NetBSD: ieeefp.h,v 1.4 1998/01/09 08:03:43 perry Exp $ */
/* $FreeBSD$ */
/*
* Written by J.T. Conklin, Apr 6, 1995
@ -17,10 +18,10 @@
__BEGIN_DECLS
extern fp_rnd fpgetround __P((void));
extern fp_rnd fpsetround __P((fp_rnd));
extern fp_except fpgetmask __P((void));
extern fp_except fpsetmask __P((fp_except));
extern fp_except fpgetsticky __P((void));
extern fp_except fpsetsticky __P((fp_except));
extern fp_except_t fpgetmask __P((void));
extern fp_except_t fpsetmask __P((fp_except_t));
extern fp_except_t fpgetsticky __P((void));
extern fp_except_t fpsetsticky __P((fp_except_t));
__END_DECLS
#endif /* __i386__ */

View File

@ -1,4 +1,5 @@
/* $NetBSD: fpgetmask.c,v 1.1 1995/04/29 05:10:55 cgd Exp $ */
/* $FreeBSD$ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -39,11 +40,11 @@ struct params {
u_int64_t mask;
};
fp_except
fp_except_t
fpgetmask()
{
struct params p;
sysarch(ALPHA_GET_FPMASK, (char *) &p);
return((fp_except) p.mask);
return((fp_except_t) p.mask);
}

View File

@ -1,4 +1,5 @@
/* $NetBSD: fpgetsticky.c,v 1.1 1995/04/29 05:10:59 cgd Exp $ */
/* $FreeBSD$ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -35,7 +36,7 @@
#include <ieeefp.h>
#include <machine/fpu.h>
fp_except
fp_except_t
fpgetsticky()
{
double fpcrval;

View File

@ -1,4 +1,5 @@
/* $NetBSD: fpsetmask.c,v 1.1 1995/04/29 05:11:01 cgd Exp $ */
/* $FreeBSD$ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -39,13 +40,13 @@ struct params {
u_int64_t mask;
};
fp_except
fp_except_t
fpsetmask(mask)
fp_except mask;
fp_except_t mask;
{
struct params p;
p.mask = (u_int64_t) mask;
sysarch(ALPHA_SET_FPMASK, (char *) &p);
return ((fp_except) p.mask);
return ((fp_except_t) p.mask);
}

View File

@ -1,4 +1,5 @@
/* $NetBSD: fpsetsticky.c,v 1.1 1995/04/29 05:11:04 cgd Exp $ */
/* $FreeBSD$ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -35,9 +36,9 @@
#include <ieeefp.h>
#include <machine/fpu.h>
fp_except
fp_except_t
fpsetsticky(sticky)
fp_except sticky;
fp_except_t sticky;
{
double fpcrval;
u_int64_t old,new ;