MCPcopy Create free account
hub / github.com/antirez/disque / ll2string

Function ll2string

src/util.c:264–316  ·  view source on GitHub ↗

Convert a long long into a string. Returns the number of * characters needed to represent the number. * If the buffer is not big enough to store the string, 0 is returned. * * Based on the following article (that apparently does not provide a * novel approach but only publicizes an already used technique): * * https://www.facebook.com/notes/facebook-engineering/three-optimization-tips-for-c

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

serverLogFromHandlerFunction · 0.85
dictEncObjHashFunction · 0.85
getDecodedObjectFunction · 0.85
addReplyFunction · 0.85
addReplyBulkLongLongFunction · 0.85
rioWriteBulkCountFunction · 0.85
rioWriteBulkLongLongFunction · 0.85
d2stringFunction · 0.85
test_ll2stringFunction · 0.85

Calls 1

digits10Function · 0.85

Tested by 1

test_ll2stringFunction · 0.68