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

Function FastUInt64ToBufferLeft

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

Source from the content-addressed store, hash-verified

167}
168
169size_t FastUInt64ToBufferLeft(uint64 i, char* buffer) {
170 char* start = buffer;
171 do {
172 *buffer++ = ((i % 10) + '0');
173 i /= 10;
174 } while (i > 0);
175 *buffer = 0;
176 std::reverse(start, buffer);
177 return buffer - start;
178}
179
180static const double kDoublePrecisionCheckMax = DBL_MAX / 1.000000000000001;
181

Callers 2

AlphaNumMethod · 0.85
FastInt64ToBufferLeftFunction · 0.85

Calls 1

reverseFunction · 0.85

Tested by

no test coverage detected