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

Function __lengthForIndex

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

Source from the content-addressed store, hash-verified

228}
229
230[[nodiscard]] _LIBCPP_HIDE_FROM_ABI inline uint32_t __lengthForIndex(const uint32_t __idx) {
231 // +1 for ceil, +16 for mantissa, +8 to round up when dividing by 9
232 return (__log10Pow2(16 * static_cast<int32_t>(__idx)) + 1 + 16 + 8) / 9;
233}
234
235[[nodiscard]] to_chars_result __d2fixed_buffered_n(char* _First, char* const _Last, const double __d,
236 const uint32_t __precision) {

Callers 2

__d2fixed_buffered_nFunction · 0.85
__d2exp_buffered_nFunction · 0.85

Calls 1

__log10Pow2Function · 0.85

Tested by

no test coverage detected