mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
don't use llabs with apparently VC++ doesn't have
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8317e12cef
commit
f75f2a0a02
@ -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
Block a user