[llvm] [flang][runtime] Emit "Infinity" rather than "Inf" when required (PR #183359)
Peter Klausler via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 25 14:47:40 PST 2026
================
@@ -77,15 +77,17 @@ template <int KIND> class RealOutputEditing : public RealOutputEditingBase {
RT_API_ATTRS bool IsZero() const { return x_.IsZero(); }
RT_API_ATTRS decimal::ConversionToDecimalResult ConvertToDecimal(
- int significantDigits, enum decimal::FortranRounding, int flags = 0);
+ int significantDigits, enum decimal::FortranRounding, int flags = 0,
+ int width = 9 /* len("+Infinity") */);
struct ConvertToHexadecimalResult {
const char *str;
int length;
int exponent;
};
RT_API_ATTRS ConvertToHexadecimalResult ConvertToHexadecimal(
- int significantDigits, enum decimal::FortranRounding, int flags = 0);
+ int significantDigits, enum decimal::FortranRounding, int width,
----------------
klausler wrote:
Code updated to always have `width` before `flags` on both APIs.
https://github.com/llvm/llvm-project/pull/183359
More information about the llvm-commits
mailing list