Changeset 94511 in vbox for trunk/src/VBox/Runtime/common/string/strformatfloat.cpp
- Timestamp:
- Apr 7, 2022 1:17:57 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strformatfloat.cpp
r94336 r94511 177 177 *pszTmp++ = '1'; 178 178 *pszTmp++ = 'm'; 179 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + RTFLOAT64U_FRACTION_BITS/ 4, 0,179 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + (RTFLOAT64U_FRACTION_BITS + 3) / 4, 0, 180 180 RTSTR_F_SPECIAL | RTSTR_F_ZEROPAD | RTSTR_F_64BIT); 181 181 … … 191 191 *pszTmp++ = '0'; 192 192 *pszTmp++ = 'm'; 193 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + RTFLOAT64U_FRACTION_BITS/ 4, 0,193 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + (RTFLOAT64U_FRACTION_BITS + 3) / 4, 0, 194 194 RTSTR_F_SPECIAL | RTSTR_F_ZEROPAD | RTSTR_F_64BIT); 195 195 if (fFlags & RTSTR_F_SPECIAL) … … 224 224 */ 225 225 static ssize_t rtStrFormatR80Worker(char *pszBuf, size_t cbBuf, bool const fSign, bool const fInteger, 226 uint64_t const uFraction, uint16_t constuExponent, uint32_t fFlags)226 uint64_t const uFraction, uint16_t uExponent, uint32_t fFlags) 227 227 { 228 228 char szTmp[160]; … … 250 250 : rtStrFormatCopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("+0")); 251 251 fDenormal = true; 252 if (fInteger) 253 uExponent = 1; 252 254 } 253 255 else if (uExponent == RTFLOAT80U_EXP_MAX) … … 296 298 *pszTmp++ = fInteger ? '1' : '0'; 297 299 *pszTmp++ = 'm'; 298 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + RTFLOAT80U_FRACTION_BITS/ 4, 0,300 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + (RTFLOAT80U_FRACTION_BITS + 3) / 4, 0, 299 301 RTSTR_F_SPECIAL | RTSTR_F_ZEROPAD | RTSTR_F_64BIT); 300 302
Note:
See TracChangeset
for help on using the changeset viewer.