aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/APFloat.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-29 01:26:11 +0000
committerDan Gohman <gohman@apple.com>2008-02-29 01:26:11 +0000
commite777063cdf00a194a699e92269d0a56a277ffcc4 (patch)
tree617eb409446e32dac79adc69b0f270346bb14428 /include/llvm/ADT/APFloat.h
parent7e29ba04d0e41ee632ee6e46ab9d10e54d379d62 (diff)
downloadexternal_llvm-e777063cdf00a194a699e92269d0a56a277ffcc4.zip
external_llvm-e777063cdf00a194a699e92269d0a56a277ffcc4.tar.gz
external_llvm-e777063cdf00a194a699e92269d0a56a277ffcc4.tar.bz2
Add a method to APFloat to convert directly from APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APFloat.h')
-rw-r--r--include/llvm/ADT/APFloat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h
index 65cb1e5..411d8ad 100644
--- a/include/llvm/ADT/APFloat.h
+++ b/include/llvm/ADT/APFloat.h
@@ -208,6 +208,8 @@ namespace llvm {
opStatus convert(const fltSemantics &, roundingMode);
opStatus convertToInteger(integerPart *, unsigned int, bool,
roundingMode) const;
+ opStatus convertFromAPInt(const APInt &,
+ bool, roundingMode);
opStatus convertFromSignExtendedInteger(const integerPart *, unsigned int,
bool, roundingMode);
opStatus convertFromZeroExtendedInteger(const integerPart *, unsigned int,