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

Class Hex

tensorflow/core/lib/strings/strcat.h:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78};
79
80struct Hex {
81 uint64 value;
82 enum PadSpec spec;
83 template <class Int>
84 explicit Hex(Int v, PadSpec s = kNoPad) : spec(s) {
85 // Prevent sign-extension by casting integers to
86 // their unsigned counterparts.
87 static_assert(
88 sizeof(v) == 1 || sizeof(v) == 2 || sizeof(v) == 4 || sizeof(v) == 8,
89 "Unknown integer type");
90 value = sizeof(v) == 1
91 ? static_cast<uint8>(v)
92 : sizeof(v) == 2 ? static_cast<uint16>(v)
93 : sizeof(v) == 4 ? static_cast<uint32>(v)
94 : static_cast<uint64>(v);
95 }
96};
97
98class AlphaNum {
99 public:

Callers 13

ValueForStrCatFunction · 0.85
MakeBitwiseErrorStatusFunction · 0.85
TEST_FFunction · 0.85
FieldStateMethod · 0.85
LogContentsMethod · 0.85
AllocateRawMethod · 0.85
CheckHex64Function · 0.85
CheckHex32Function · 0.85
CheckHexSigned32Function · 0.85
TestFastPrintsFunction · 0.85
GraphHashFunction · 0.85
InitializeMethod · 0.85

Calls

no outgoing calls

Tested by 6

TEST_FFunction · 0.68
CheckHex64Function · 0.68
CheckHex32Function · 0.68
CheckHexSigned32Function · 0.68
TestFastPrintsFunction · 0.68
SerializedToReadableFunction · 0.68