diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2007-10-07 11:45:55 +0000 |
---|---|---|
committer | Neil Booth <neil@daikokuya.co.uk> | 2007-10-07 11:45:55 +0000 |
commit | ccf596a53e16ea221a9bf8b3874a7d6afa71f1f4 (patch) | |
tree | 8323d17a395d8dbbb4d9c91239fc92e1ebb439fa /include | |
parent | 33d4c92e78a32a8e07ab3ebc1487b07304875ddd (diff) | |
download | external_llvm-ccf596a53e16ea221a9bf8b3874a7d6afa71f1f4.zip external_llvm-ccf596a53e16ea221a9bf8b3874a7d6afa71f1f4.tar.gz external_llvm-ccf596a53e16ea221a9bf8b3874a7d6afa71f1f4.tar.bz2 |
convertFromInteger, as originally written, expected sign-extended
input. APInt unfortunately zero-extends signed integers, so Dale
modified the function to expect zero-extended input. Make this
assumption explicit in the function name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index d62b5c2..7505269 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -194,8 +194,8 @@ namespace llvm { opStatus convert(const fltSemantics &, roundingMode); opStatus convertToInteger(integerPart *, unsigned int, bool, roundingMode) const; - opStatus convertFromInteger(const integerPart *, unsigned int, bool, - roundingMode); + opStatus convertFromZeroExtendedInteger(const integerPart *, unsigned int, + bool, roundingMode); opStatus convertFromString(const char *, roundingMode); APInt convertToAPInt() const; double convertToDouble() const; |