Allow the RoundDoubleToAPInt function to specify a width to use.

llvm-svn: 34672
This commit is contained in:
Reid Spencer 2007-02-27 18:22:31 +00:00
parent 2ebb2e99d1
commit c561bd2f18
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ inline float RoundAPIntToFloat(const APInt& APIVal) {
/// RoundDoubleToAPInt - This function convert a double value to an APInt value. /// RoundDoubleToAPInt - This function convert a double value to an APInt value.
/// @brief Converts the given double value into a APInt. /// @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. /// RoundFloatToAPInt - Converts a float value into an APInt value.
/// @brief Converts a float value into a APInt. /// @brief Converts a float value into a APInt.