Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the

current rounding mode is accurately reported.
This commit is contained in:
jtc 1995-04-07 00:44:37 +00:00
parent 30c05ea2b8
commit 7a5da7fda2
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: float.h,v 1.7 1994/10/26 07:50:46 cgd Exp $ */ /* $NetBSD: float.h,v 1.8 1995/04/07 00:44:37 jtc Exp $ */
/* /*
* Copyright (c) 1989 Regents of the University of California. * Copyright (c) 1989 Regents of the University of California.
@ -37,8 +37,9 @@
#ifndef _M68K_FLOAT_H_ #ifndef _M68K_FLOAT_H_
#define _M68K_FLOAT_H_ #define _M68K_FLOAT_H_
extern int __flt_rounds();
#define FLT_RADIX 2 /* b */ #define FLT_RADIX 2 /* b */
#define FLT_ROUNDS 1 /* FP addition rounds to nearest */ #define FLT_ROUNDS __flt_rounds()
#define FLT_MANT_DIG 24 /* p */ #define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */