Changeset 94302 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Mar 17, 2022 9:11:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strformatfloat.cpp
r94300 r94302 251 251 fDenormal = true; 252 252 } 253 else if (uExponent == RTFLOAT 64U_EXP_MAX)253 else if (uExponent == RTFLOAT80U_EXP_MAX) 254 254 { 255 255 if (!fInteger) … … 285 285 pszTmp = (char *)memcpy(pszTmp, "QNan[", 5) + 5; 286 286 } 287 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + RTFLOAT 64U_FRACTION_BITS / 4, 0,287 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + RTFLOAT80U_FRACTION_BITS / 4, 0, 288 288 RTSTR_F_SPECIAL | RTSTR_F_ZEROPAD | RTSTR_F_64BIT); 289 289 *pszTmp++ = ']'; … … 296 296 *pszTmp++ = fInteger ? '1' : '0'; 297 297 *pszTmp++ = 'm'; 298 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + RTFLOAT 64U_FRACTION_BITS / 4, 0,298 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + RTFLOAT80U_FRACTION_BITS / 4, 0, 299 299 RTSTR_F_SPECIAL | RTSTR_F_ZEROPAD | RTSTR_F_64BIT); 300 300 301 301 *pszTmp++ = '^'; 302 pszTmp += RTStrFormatNumber(pszTmp, (int32_t)uExponent - RTFLOAT 64U_EXP_BIAS, 10, 0, 0,302 pszTmp += RTStrFormatNumber(pszTmp, (int32_t)uExponent - RTFLOAT80U_EXP_BIAS, 10, 0, 0, 303 303 RTSTR_F_ZEROPAD | RTSTR_F_32BIT | RTSTR_F_VALSIGNED); 304 304 if (fDenormal && (fFlags & RTSTR_F_SPECIAL))
Note:
See TracChangeset
for help on using the changeset viewer.