projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbec2d9
)
Allow the RoundDoubleToAPInt function to specify a width to use.
author
Reid Spencer
<rspencer@reidspencer.com>
Tue, 27 Feb 2007 18:22:31 +0000
(18:22 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Tue, 27 Feb 2007 18:22:31 +0000
(18:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34672
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/APInt.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/APInt.h
b/include/llvm/ADT/APInt.h
index 28170b831e88b8bd1469db1af72b597e37e61525..bf58d85a26672aa4834932090a95c0805875c009 100644
(file)
--- a/
include/llvm/ADT/APInt.h
+++ b/
include/llvm/ADT/APInt.h
@@
-654,7
+654,7
@@
inline float RoundAPIntToFloat(const APInt& APIVal) {
/// RoundDoubleToAPInt - This function convert a double value to an APInt value.
/// @brief Converts the given double value into a APInt.
-APInt RoundDoubleToAPInt(double Double);
+APInt RoundDoubleToAPInt(double Double
, uint32_t width = 64
);
/// RoundFloatToAPInt - Converts a float value into an APInt value.
/// @brief Converts a float value into a APInt.