fix FLT_ROUNDS to reflect the current rounding mode
authorSzabolcs Nagy <nsz@port70.net>
Sat, 7 Mar 2015 10:00:37 +0000 (11:00 +0100)
committerRich Felker <dalias@aerifal.cx>
Sat, 7 Mar 2015 17:05:28 +0000 (12:05 -0500)
commit559de8f5f06da9022cbba70e22e14a710eb74513
treef8980299d0f0a77f4a613c2fc58ada81b789aa66
parentbd67959f3ad5049c35af0a0e2f8f1a1e60577a49
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)
arch/arm/bits/float.h
arch/i386/bits/float.h
arch/microblaze/bits/float.h
arch/mips/bits/float.h
arch/or1k/bits/float.h
arch/powerpc/bits/float.h
arch/sh/bits/float.h
arch/x32/bits/float.h
arch/x86_64/bits/float.h
include/float.h
src/fenv/__flt_rounds.c [new file with mode: 0644]