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

Function SignedEncodingLength

tensorflow/core/lib/strings/ordered_code.cc:447–449  ·  view source on GitHub ↗

Calculates the encoding length in bytes of the signed number n.

Source from the content-addressed store, hash-verified

445
446// Calculates the encoding length in bytes of the signed number n.
447static inline int SignedEncodingLength(int64 n) {
448 return kBitsToLength[Log2Floor64(n < 0 ? ~n : n) + 1];
449}
450
451static void StoreBigEndian64(char* dst, uint64 v) {
452 for (int i = 0; i < 8; i++) {

Callers 2

Calls 1

Log2Floor64Function · 0.70

Tested by

no test coverage detected