[llvm] r211407 - Support: Cleanup ScaledNumber::getAdjusted() doc

Duncan P. N. Exon Smith dexonsmith at apple.com
Fri Jun 20 14:44:36 PDT 2014


Author: dexonsmith
Date: Fri Jun 20 16:44:36 2014
New Revision: 211407

URL: http://llvm.org/viewvc/llvm-project?rev=211407&view=rev
Log:
Support: Cleanup ScaledNumber::getAdjusted() doc

Modified:
    llvm/trunk/include/llvm/Support/ScaledNumber.h

Modified: llvm/trunk/include/llvm/Support/ScaledNumber.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ScaledNumber.h?rev=211407&r1=211406&r2=211407&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ScaledNumber.h (original)
+++ llvm/trunk/include/llvm/Support/ScaledNumber.h Fri Jun 20 16:44:36 2014
@@ -67,10 +67,7 @@ inline std::pair<uint64_t, int16_t> getR
 
 /// \brief Adjust a 64-bit scaled number down to the appropriate width.
 ///
-/// Adjust a soft float with 64-bits of digits down, keeping as much
-/// information as possible, and rounding up on half.
-///
-/// \pre Adding 1 to \c Scale will not overflow INT16_MAX.
+/// \pre Adding 64 to \c Scale will not overflow INT16_MAX.
 template <class DigitsT>
 inline std::pair<DigitsT, int16_t> getAdjusted(uint64_t Digits,
                                                int16_t Scale = 0) {





More information about the llvm-commits mailing list