Skip to content

Commit

Permalink
Merge pull request JuliaLang#22714 from JuliaLang/aa/unused-all_eq
Browse files Browse the repository at this point in the history
Remove the unused all_eq function in runtime_intrinsics
  • Loading branch information
ararslan authored and StefanKarpinski committed Jul 11, 2017
1 parent f98b857 commit c2a0aea
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/runtime_intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit c2a0aea

Please sign in to comment.