MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __append_c_digits

Function __append_c_digits

system/lib/libcxx/src/ryu/d2fixed.cpp:188–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188_LIBCPP_HIDE_FROM_ABI inline void __append_c_digits(const uint32_t __count, uint32_t __digits, char* const __result) {
189 uint32_t __i = 0;
190 for (; __i < __count - 1; __i += 2) {
191 const uint32_t __c = (__digits % 100) << 1;
192 __digits /= 100;
193 std::memcpy(__result + __count - __i - 2, __DIGIT_TABLE + __c, 2);
194 }
195 if (__i < __count) {
196 const char __c = static_cast<char>('0' + (__digits % 10));
197 __result[__count - __i - 1] = __c;
198 }
199}
200
201void __append_nine_digits(uint32_t __digits, char* const __result) {
202 if (__digits == 0) {

Callers 2

__d2fixed_buffered_nFunction · 0.85
__d2exp_buffered_nFunction · 0.85

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected