[PATCH] [libc++] Support Newlib as libc++'s C library (on ARM) [cmath part, part 1]

JF Bastien jfb at chromium.org
Mon Sep 22 10:48:37 PDT 2014


================
Comment at: include/support/newlib/math.h:17
@@ +16,3 @@
+
+#if defined(__arm__) && !defined(__LP64__)
+double nexttoward(double d, long double td);
----------------
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.

http://reviews.llvm.org/D5419






More information about the cfe-commits mailing list