From 7a5da7fda214da3dafe0e3d0de928baa98e8f081 Mon Sep 17 00:00:00 2001 From: jtc Date: Fri, 7 Apr 1995 00:44:37 +0000 Subject: [PATCH] Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the current rounding mode is accurately reported. --- sys/arch/m68k/include/float.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/m68k/include/float.h b/sys/arch/m68k/include/float.h index f5bb65a2abf6..0c500bd6efa9 100644 --- a/sys/arch/m68k/include/float.h +++ b/sys/arch/m68k/include/float.h @@ -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. @@ -37,8 +37,9 @@ #ifndef _M68K_FLOAT_H_ #define _M68K_FLOAT_H_ +extern int __flt_rounds(); #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_EPSILON 1.19209290E-07F /* b**(1-p) */