aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-18 16:45:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-18 16:45:49 -0800
commitb275780257bfb3809d43e63f19a44f22765ee2fb (patch)
tree86b17fbc349550e70b7ae95f4d45dd347a474b6d
parent558414e37c1141a1ca0e8fb845d60f027bcd1aeb (diff)
fix FPtoIHigh
-rw-r--r--lib/Target/CppBackend/CallHandlers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CallHandlers.h b/lib/Target/CppBackend/CallHandlers.h
index 778eac16bc..1fdab44b88 100644
--- a/lib/Target/CppBackend/CallHandlers.h
+++ b/lib/Target/CppBackend/CallHandlers.h
@@ -48,7 +48,7 @@ DEF_CALL_HANDLER(FPtoILow, {
DEF_CALL_HANDLER(FPtoIHigh, {
std::string Input = getValueAsStr(CI->getArgOperand(0));
- return getAssign(getCppName(CI), CI->getType()) + "Math_abs(" + Input + ") >= +1 ? " + Input + " > +0 ? (Math_min(+Math_floor(" + Input + " / +4294967296), +4294967295) | 0) >>> 0 : ~~+Math_ceil((" + Input + " - +(~~" + Input + " >>> 0)) / +4294967296) >>> 0 : 0";
+ return getAssign(getCppName(CI), CI->getType()) + "+Math_abs(" + Input + ") >= +1 ? " + Input + " > +0 ? (Math_min(+Math_floor(" + Input + " / +4294967296), +4294967295) | 0) >>> 0 : ~~+Math_ceil((" + Input + " - +(~~" + Input + " >>> 0)) / +4294967296) >>> 0 : 0";
})
DEF_CALL_HANDLER(BDtoILow, {