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

Function LoadBigEndian64

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

Source from the content-addressed store, hash-verified

455}
456
457static uint64 LoadBigEndian64(const char* src) {
458 uint64 result = 0;
459 for (int i = 0; i < 8; i++) {
460 unsigned char c = static_cast<unsigned char>(src[i]);
461 result |= static_cast<uint64>(c) << (56 - 8 * i);
462 }
463 return result;
464}
465
466void OrderedCode::WriteSignedNumIncreasing(string* dest, int64 val) {
467 const uint64 x = val < 0 ? ~val : val;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected