mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Use abs64 instead abs; some platforms don't have a 64-bit abs overload. Noticed by Yonggang Luo!
llvm-svn: 78543
This commit is contained in:
parent
390e1927bf
commit
259a140521
@ -117,7 +117,7 @@ namespace {
|
|||||||
uint64_t complow = 1 << (63 - at);
|
uint64_t complow = 1 << (63 - at);
|
||||||
uint64_t comphigh = 1 << (64 - at);
|
uint64_t comphigh = 1 << (64 - at);
|
||||||
//cerr << x << ":" << complow << ":" << comphigh << "\n";
|
//cerr << x << ":" << complow << ":" << comphigh << "\n";
|
||||||
if (abs(complow - x) <= abs(comphigh - x))
|
if (abs64(complow - x) <= abs64(comphigh - x))
|
||||||
return complow;
|
return complow;
|
||||||
else
|
else
|
||||||
return comphigh;
|
return comphigh;
|
||||||
|
Loading…
Reference in New Issue
Block a user