mirror of
https://github.com/fluencelabs/musl
synced 2025-06-23 19:52:01 +00:00
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)
This commit is contained in:
committed by
Rich Felker
parent
bd67959f3a
commit
559de8f5f0
@ -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
|
||||
|
Reference in New Issue
Block a user