forked from OSchip/llvm-project
Allow the RoundDoubleToAPInt function to specify a width to use.
llvm-svn: 34672
This commit is contained in:
parent
2ebb2e99d1
commit
c561bd2f18
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue