mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Teach APFloat how to create both QNaNs and SNaNs and with arbitrary-width
payloads. APFloat's internal folding routines always make QNaNs now, instead of sometimes making QNaNs and sometimes SNaNs depending on the type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2344,13 +2344,21 @@ APInt::tcExtractBit(const integerPart *parts, unsigned int bit)
|
||||
& ((integerPart) 1 << bit % integerPartWidth)) != 0;
|
||||
}
|
||||
|
||||
/* Set the given bit of a bignum. */
|
||||
/* Set the given bit of a bignum. */
|
||||
void
|
||||
APInt::tcSetBit(integerPart *parts, unsigned int bit)
|
||||
{
|
||||
parts[bit / integerPartWidth] |= (integerPart) 1 << (bit % integerPartWidth);
|
||||
}
|
||||
|
||||
/* Clears the given bit of a bignum. */
|
||||
void
|
||||
APInt::tcClearBit(integerPart *parts, unsigned int bit)
|
||||
{
|
||||
parts[bit / integerPartWidth] &=
|
||||
~((integerPart) 1 << (bit % integerPartWidth));
|
||||
}
|
||||
|
||||
/* Returns the bit number of the least significant set bit of a
|
||||
number. If the input number has no bits set -1U is returned. */
|
||||
unsigned int
|
||||
|
||||
Reference in New Issue
Block a user