[cfe-commits] r135927 - /cfe/trunk/lib/Headers/tgmath.h
Howard Hinnant
hhinnant at apple.com
Mon Jul 25 11:09:57 PDT 2011
Author: hhinnant
Date: Mon Jul 25 13:09:56 2011
New Revision: 135927
URL: http://llvm.org/viewvc/llvm-project?rev=135927&view=rev
Log:
http://llvm.org/bugs/show_bug.cgi?id=10472
Modified:
cfe/trunk/lib/Headers/tgmath.h
Modified: cfe/trunk/lib/Headers/tgmath.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/tgmath.h?rev=135927&r1=135926&r2=135927&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/tgmath.h (original)
+++ cfe/trunk/lib/Headers/tgmath.h Mon Jul 25 13:09:56 2011
@@ -1049,19 +1049,18 @@
static float
_TG_ATTRS
- __tg_nexttoward(float __x, float __y) {return nexttowardf(__x, __y);}
+ __tg_nexttoward(float __x, long double __y) {return nexttowardf(__x, __y);}
static double
_TG_ATTRS
- __tg_nexttoward(double __x, double __y) {return nexttoward(__x, __y);}
+ __tg_nexttoward(double __x, long double __y) {return nexttoward(__x, __y);}
static long double
_TG_ATTRS
__tg_nexttoward(long double __x, long double __y) {return nexttowardl(__x, __y);}
#undef nexttoward
-#define nexttoward(__x, __y) __tg_nexttoward(__tg_promote2((__x), (__y))(__x), \
- __tg_promote2((__x), (__y))(__y))
+#define nexttoward(__x, __y) __tg_nexttoward(__tg_promote1((__x))(__x), (__y))
// remainder
More information about the cfe-commits
mailing list