From f75f2a0a026621430f412d903c489b3fc951dbb3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 20 Oct 2005 17:01:00 +0000 Subject: [PATCH] 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 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 75f1c18a730..eb0b88df98a 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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