From c2a0aea75be1e5baf89a298c7a51d1aa08d0c22d Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Tue, 11 Jul 2017 11:47:26 -0700 Subject: [PATCH] Merge pull request #22714 from JuliaLang/aa/unused-all_eq Remove the unused all_eq function in runtime_intrinsics --- src/runtime_intrinsics.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/runtime_intrinsics.c b/src/runtime_intrinsics.c index 5d34911110f1f..a768b9dec3501 100644 --- a/src/runtime_intrinsics.c +++ b/src/runtime_intrinsics.c @@ -843,16 +843,6 @@ cvt_iintrinsic(LLVMFPtoUI, fptoui) un_fintrinsic_withtype(fpcvt,fptrunc) un_fintrinsic_withtype(fpcvt,fpext) -// checked conversion -static inline int all_eq(char *p, char n, char v) -{ - // computes p[0:n] == v - while (n--) - if (*p++ != v) - return 0; - return 1; -} - // checked arithmetic #define check_sadd_int(a,b) \ /* this test is a reduction of (b > 0) ? (a + b > typemax(a)) : (a + b < typemin(a)) ==> overflow \