search for: lowhalf

Displaying 3 results from an estimated 3 matches for "lowhalf".

Did you mean: low_half
2007 Aug 18
1
[LLVMdev] Minor cleanup to prior APInt patch
...==----------------------------------------------------------------------===// Index: lib/Support/APInt.cpp =================================================================== --- lib/Support/APInt.cpp (revision 41148) +++ lib/Support/APInt.cpp (working copy) @@ -2018,15 +2018,29 @@ /* Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe and unrestricting assumption. */ -compileTimeAssert(integerPartWidth % 2 == 0); +COMPILE_TIME_ASSERT(integerPartWidth % 2 == 0); -#define lowBitMask(bits) (~(integerPart) 0 >> (integerPartWidth - (bits))) -#define lowHalf(part) ((part) &am...
2007 Aug 14
1
[LLVMdev] Static functions for APInt
...41083) +++ lib/Support/APInt.cpp (working copy) @@ -2012,3 +2012,569 @@ << ")\n" << std::setbase(10); } #endif + +// This implements a variety of operations on a representation of +// arbitrary precision, two's-complement, bignum integer values. + +/* Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe + and unrestricting assumption. */ +compileTimeAssert(integerPartWidth % 2 == 0); + +#define lowBitMask(bits) (~(integerPart) 0 >> (integerPartWidth - (bits))) +#define lowHalf(part) ((part) & lowBitMask(integerPartWidth / 2)) +#define hig...
2007 Aug 18
1
[LLVMdev] Soft floating point support
This patch supplies software IEEE floating point support. The comment from the patch reproduced below says all there is to say. This patch contains the prior "cleanup" patch; please don't apply that one. Please let me know of any bugs. It is tested reasonably well, but until I put together random tests it's hard to have 100% confidence. Neil. /* A self-contained host- and