diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-27 18:22:31 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-27 18:22:31 +0000 |
commit | 409f092766e61ab317e46aec37b4a9234ead9b5a (patch) | |
tree | 8c4893c8d380b64f01d917a5c7dab48298bda43b | |
parent | dbec2d9dcf6bf942b29db19ecea35e40c5a88506 (diff) |
Allow the RoundDoubleToAPInt function to specify a width to use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34672 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 28170b831e..bf58d85a26 100644 --- 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. |