MCPcopy Create free account
hub / github.com/alibaba/graph-learn / FastInt32ToBuffer

Function FastInt32ToBuffer

graphlearn/src/common/string/numeric.cc:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53char* FastInt32ToBuffer(int32_t i, char* buffer) {
54 uint32_t u = i;
55 if (i < 0) {
56 *buffer++ = '-';
57 u = 0 - u;
58 }
59 return FastUInt32ToBuffer(u, buffer);
60}
61
62char* FastUInt64ToBuffer(uint64_t i, char* buffer) {
63 char* start = buffer;

Callers 1

Int32ToStringFunction · 0.85

Calls 1

FastUInt32ToBufferFunction · 0.85

Tested by

no test coverage detected