[PATCH] [COMPILER-RT] Implement __fixtfsi, __fixunstfsi

Joerg Sonnenberger joerg at NetBSD.org
Tue Sep 16 13:38:56 PDT 2014


================
Comment at: lib/builtins/fixtfsi.c:33
@@ +32,3 @@
+        if (exponent >= sizeof(int) * CHAR_BIT){
+            return sign == 1 ? INT_MAX : INT_MIN;
+        }
----------------
See initial comment, no need for range check.

http://reviews.llvm.org/D2804






More information about the llvm-commits mailing list