From 559de8f5f06da9022cbba70e22e14a710eb74513 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Mar 2015 11:00:37 +0100 Subject: fix FLT_ROUNDS to reflect the current rounding mode Implemented as a wrapper around fegetround introducing a new function to the ABI: __flt_rounds. (fegetround cannot be used directly from float.h) --- include/float.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/float.h b/include/float.h index 161e167c..c6429d33 100644 --- a/include/float.h +++ b/include/float.h @@ -1,6 +1,9 @@ #ifndef _FLOAT_H #define _FLOAT_H +int __flt_rounds(void); +#define FLT_ROUNDS (__flt_rounds()) + #define FLT_RADIX 2 #define FLT_TRUE_MIN 1.40129846432481707092e-45F -- cgit v1.2.1