From: Benjamin Kramer Date: Sun, 9 Aug 2009 22:37:07 +0000 (+0000) Subject: Use abs64 instead abs; some platforms don't have a 64-bit abs overload. Noticed by... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c6ca847a4ee48b203239802cba78b90ba0c40dee;p=oota-llvm.git Use abs64 instead abs; some platforms don't have a 64-bit abs overload. Noticed by Yonggang Luo! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78543 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index 61032e9e7bf..6b2cf701122 100644 --- a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -117,7 +117,7 @@ namespace { uint64_t complow = 1 << (63 - at); uint64_t comphigh = 1 << (64 - at); //cerr << x << ":" << complow << ":" << comphigh << "\n"; - if (abs(complow - x) <= abs(comphigh - x)) + if (abs64(complow - x) <= abs64(comphigh - x)) return complow; else return comphigh;