Skip to content

Commit fce733e

Browse files
FlyGoatkeith-packard
authored andcommitted
include: Correct _IEEE_754_2008_SNAN for MIPS NAN2008 variant
Later MIPS processors have a NAN2008 option that allows it's FPU implementation to be IEEE 754-2008 comformance. This can be detected at build time with __mips_nan2008 macro. Only define _IEEE_754_2008_SNAN to 0 when __mips_nan2008 is not defined. Signed-off-by: Jiaxun Yang <[email protected]>
1 parent d02b90e commit fce733e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

newlib/libc/include/machine/ieeefp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
333333
#endif
334334

335335
#ifdef __mips__
336+
#ifndef __mips_nan2008
336337
#define _IEEE_754_2008_SNAN 0
338+
#endif
337339
#ifndef __mips_soft_float
338340
#define _SUPPORTS_ERREXCEPT
339341
#endif

0 commit comments

Comments
 (0)