diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-05-28 19:50:20 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-05-28 19:50:20 +0000 |
commit | a32edcfbc5b99b808b67360311d513af650eab44 (patch) | |
tree | 21971c0faaaaf4ca5befa11c45bac79ccd174be6 /include/llvm/ADT | |
parent | e274b476de33ee4f2e90a3eb3a56b5cdd619eb82 (diff) | |
download | external_llvm-a32edcfbc5b99b808b67360311d513af650eab44.zip external_llvm-a32edcfbc5b99b808b67360311d513af650eab44.tar.gz external_llvm-a32edcfbc5b99b808b67360311d513af650eab44.tar.bz2 |
[APInt] Implement tcDecrement as a counterpart to tcIncrement. This is for use in APFloat IEEE-754R 2008 nextUp/nextDown function.
rdar://13852078
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/APInt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index fc1aedb..a9df403 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -1642,6 +1642,9 @@ public: /// Increment a bignum in-place. Return the carry flag. static integerPart tcIncrement(integerPart *, unsigned int); + /// Decrement a bignum in-place. Return the borrow flag. + static integerPart tcDecrement(integerPart *, unsigned int); + /// Set the least significant BITS and clear the rest. static void tcSetLeastSignificantBits(integerPart *, unsigned int, unsigned int bits); |