[DOC] Update comment for DECIMAL_SIZE_OF_BITS

This commit is contained in:
Nobuyoshi Nakada 2023-11-11 18:49:19 +09:00
parent 9eac9d7178
commit 64f03460ba
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -33,7 +33,9 @@
RBIMPL_SYMBOL_EXPORT_BEGIN()
/** an approximation of ceil(n * log10(2)), up to 65536 at least */
/** an approximation of ceil(n * log10(2)), up to 1,048,576 (1<<20)
* without overflow within 32-bit calculation
*/
#define DECIMAL_SIZE_OF_BITS(n) (((n) * 3010 + 9998) / 9999)
/** an approximation of decimal representation size for n-bytes */