32 #define M3_API_EXPORTS 48 while ( value >= 100 )
50 const unsigned i = (value % 100) << 1;
58 *--buffer = char(value) +
'0';
62 const unsigned i = value << 1;
75 u32toa( static_cast<uint32_t>(value), buffer );
84 while ( value >= 100000000 )
86 const uint32_t a =
static_cast<uint32_t
>(value % 100000000);
89 const uint32_t b = a / 10000;
90 const uint32_t c = a % 10000;
92 const uint32_t b1 = (b / 100) << 1;
93 const uint32_t b2 = (b % 100) << 1;
94 const uint32_t c1 = (c / 100) << 1;
95 const uint32_t c2 = (c % 100) << 1;
109 uint32_t value32 =
static_cast<uint32_t
>(value);
110 while ( value32 >= 100 )
112 const unsigned i =
static_cast<unsigned>(value32 % 100) << 1;
120 *--buffer = char(value32) +
'0';
124 const unsigned i =
static_cast<unsigned>(value32) << 1;
138 u64toa( static_cast<uint64_t>(value), buffer );
void i32toa(int32_t value, char *buffer)
Quickly convert a 32-bit signed integer to a char array (buffer should already be allocated) ...
unsigned CountDecimalDigit32(uint32_t n)
void u32toa(uint32_t value, char *buffer)
Quickly convert a 32-bit unsigned integer to a char array (buffer should already be allocated) ...
const char gDigitsLut[200]
void u64toa(uint64_t value, char *buffer)
Quickly convert a 64-bit unsigned integer to a char array (buffer should already be allocated) ...
unsigned CountDecimalDigit64(uint64_t n)
void i64toa(int64_t value, char *buffer)
Quickly convert a 64-bit signed integer to a char array (buffer should already be allocated) ...