Skip to content

Commit 5ced76b

Browse files
committed
machine/ieeefp.h: Fix up new math hacks when double is 32 bits
The new math code requires 64-bit doubles, but the hack in ieeefp.h to disable it was missing a couple of steps to undefine __OBSOLETE_MATH_DEFAULT_FLOAT and __OBSOLETE_MATH_DEFAULT_DOUBLE. Signed-off-by: Keith Packard <[email protected]>
1 parent 9fee7f4 commit 5ced76b

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
@@ -579,6 +579,8 @@ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
579579
#undef __OBSOLETE_MATH
580580
#undef __OBSOLETE_MATH_DOUBLE
581581
#undef __OBSOLETE_MATH_FLOAT
582+
#undef __OBSOLETE_MATH_DEFAULT_FLOAT
583+
#undef __OBSOLETE_MATH_DEFAULT_DOUBLE
582584
#define __OBSOLETE_MATH 1
583585
#endif
584586

0 commit comments

Comments
 (0)