From 0d57a81a8be9e9b63084d2b57eaadc0e1d57f2b7 Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 23 Dec 1998 11:50:52 +0000 Subject: Implement fpsetmask() and other fp*() functions. Programs should use #include to access these functions instead of the i386 specific #include Submitted by: Hidetoshi Shimokawa --- include/Makefile | 4 ++-- include/ieeefp.h | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 include/ieeefp.h (limited to 'include') diff --git a/include/Makefile b/include/Makefile index 55e9f0f..89d825d 100644 --- a/include/Makefile +++ b/include/Makefile @@ -1,5 +1,5 @@ # @(#)Makefile 8.2 (Berkeley) 1/4/94 -# $Id: Makefile,v 1.87 1998/10/17 15:52:48 bde Exp $ +# $Id: Makefile,v 1.88 1998/12/19 00:21:13 dt Exp $ # # Doing a make install builds /usr/include # @@ -10,7 +10,7 @@ CLEANFILES= osreldate.h version vers.c SUBDIR= rpcsvc FILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \ dlfcn.h elf.h err.h fnmatch.h fstab.h \ - fts.h glob.h grp.h strhash.h histedit.h iso646.h \ + fts.h glob.h grp.h strhash.h histedit.h ieeefp.h iso646.h \ kvm.h limits.h link.h locale.h malloc.h memory.h mpool.h \ ndbm.h netdb.h nl_types.h nlist.h objformat.h \ paths.h pthread.h pthread_np.h pwd.h \ diff --git a/include/ieeefp.h b/include/ieeefp.h new file mode 100644 index 0000000..83db9a5 --- /dev/null +++ b/include/ieeefp.h @@ -0,0 +1,25 @@ +/* $NetBSD: ieeefp.h,v 1.4 1998/01/09 08:03:43 perry Exp $ */ + +/* + * Written by J.T. Conklin, Apr 6, 1995 + * Public domain. + */ + +#ifndef _IEEEFP_H_ +#define _IEEEFP_H_ + +#include +#include + +#ifdef i386 +#include +#else +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)); +#endif /* i386 */ + +#endif /* _IEEEFP_H_ */ -- cgit v1.1