Add shims for nexttoward/nexttowardf/nexttowardl to patch over newlib missing them.
Diff Detail
Event Timeline
include/support/newlib/math.h | ||
---|---|---|
17 | Why __arm__? It seems better to key off long double being the same as double. I'm not sure if clang has a macro for this, but it should. |
include/support/newlib/math.h | ||
---|---|---|
17 | Discussed on IRC: #if __SIZEOF_DOUBLE__ == __SIZEOF_LONG_DOUBLE__ |
src/support/newlib/math.cpp | ||
---|---|---|
15 | you wont need this assert if you use the same macro as above (double == long double), right? Possibly not even the comment... |
src/support/newlib/math.cpp | ||
---|---|---|
15 | right :) I think though that the comment makes it clear: these are not an approximation; they precisely implement the required behavior. |
src/support/newlib/math.cpp | ||
---|---|---|
15 | good point. |
Use __SIZEOF_DOUBLE__ == __SIZEOF_LONG_DOUBLE__ for the check, and guards to make sure these new support files are only used for newlib.
Everything looks good but the presence of math.cpp.
src/support/newlib/math.cpp | ||
---|---|---|
33 | Wouldn't it be better to inline all of these into math.h? |
Abandoning in favor of plunking these directly in Newlib: https://sourceware.org/ml/newlib/2014/msg00469.html
Why __arm__? It seems better to key off long double being the same as double. I'm not sure if clang has a macro for this, but it should.