MCPcopy Create free account
hub / github.com/Vectorized/function-selector-miner / writeDecimal

Function writeDecimal

cpp/main.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#endif
17
18FORCE_INLINE char *writeDecimal(char *out, uint64_t x)
19{
20 char buff[64], *end = buff + 32, *p = end;
21 do { *(--p) = (x % 10) + 48; } while (x /= 10);
22 memcpy(out, p, 32);
23 return out + (end - p);
24}
25
26FORCE_INLINE std::string functionSelectorToHex(uint32_t x)
27{

Callers 1

fillSpongeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected