Deleted Added
full compact
APInt.cpp (193323) APInt.cpp (195340)
1//===-- APInt.cpp - Implement APInt class ---------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 2164 unchanged lines hidden (view full) ---

2173}
2174
2175void APInt::print(raw_ostream &OS, bool isSigned) const {
2176 SmallString<40> S;
2177 this->toString(S, 10, isSigned);
2178 OS << S.c_str();
2179}
2180
1//===-- APInt.cpp - Implement APInt class ---------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 2164 unchanged lines hidden (view full) ---

2173}
2174
2175void APInt::print(raw_ostream &OS, bool isSigned) const {
2176 SmallString<40> S;
2177 this->toString(S, 10, isSigned);
2178 OS << S.c_str();
2179}
2180
2181std::ostream &llvm::operator<<(std::ostream &o, const APInt &I) {
2182 raw_os_ostream OS(o);
2183 OS << I;
2184 return o;
2185}
2186
2181// This implements a variety of operations on a representation of
2182// arbitrary precision, two's-complement, bignum integer values.
2183
2184/* Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe
2185 and unrestricting assumption. */
2186#define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1]
2187COMPILE_TIME_ASSERT(integerPartWidth % 2 == 0);
2188

--- 628 unchanged lines hidden ---
2187// This implements a variety of operations on a representation of
2188// arbitrary precision, two's-complement, bignum integer values.
2189
2190/* Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe
2191 and unrestricting assumption. */
2192#define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1]
2193COMPILE_TIME_ASSERT(integerPartWidth % 2 == 0);
2194

--- 628 unchanged lines hidden ---