forked from OSchip/llvm-project
don't use llabs with apparently VC++ doesn't have
llvm-svn: 23845
This commit is contained in:
parent
35852fc391
commit
a6efeb01f9
|
@ -292,7 +292,7 @@ static ms magic64(int64_t d) {
|
|||
const uint64_t two63 = 9223372036854775808ULL; // 2^63
|
||||
struct ms mag;
|
||||
|
||||
ad = llabs(d);
|
||||
ad = d >= 0 ? d : -d;
|
||||
t = two63 + ((uint64_t)d >> 63);
|
||||
anc = t - 1 - t%ad; // absolute value of nc
|
||||
p = 63; // initialize p
|
||||
|
|
Loading…
Reference in New Issue