MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / FastUInt32ToBufferLeft

Function FastUInt32ToBufferLeft

tensorflow/core/lib/strings/numbers.cc:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146size_t FastUInt32ToBufferLeft(uint32 i, char* buffer) {
147 char* start = buffer;
148 do {
149 *buffer++ = ((i % 10) + '0');
150 i /= 10;
151 } while (i > 0);
152 *buffer = 0;
153 std::reverse(start, buffer);
154 return buffer - start;
155}
156
157size_t FastInt64ToBufferLeft(int64 i, char* buffer) {
158 uint64 u = i;

Callers 2

AlphaNumMethod · 0.70
FastInt32ToBufferLeftFunction · 0.70

Calls 1

reverseFunction · 0.85

Tested by

no test coverage detected