MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / WidthU

Function WidthU

Libs/flatbuffers/flexbuffers.h:184–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184inline BitWidth WidthU(uint64_t u) {
185#define FLATBUFFERS_GET_FIELD_BIT_WIDTH(value, width) \
186 { \
187 if (!((u) & ~((1ULL << (width)) - 1ULL))) return BIT_WIDTH_##width; \
188 }
189 FLATBUFFERS_GET_FIELD_BIT_WIDTH(u, 8);
190 FLATBUFFERS_GET_FIELD_BIT_WIDTH(u, 16);
191 FLATBUFFERS_GET_FIELD_BIT_WIDTH(u, 32);
192#undef FLATBUFFERS_GET_FIELD_BIT_WIDTH
193 return BIT_WIDTH_64;
194}
195
196inline BitWidth WidthI(int64_t i) {
197 auto u = static_cast<uint64_t>(i) << 1;

Callers 9

WidthIFunction · 0.85
MutateIntMethod · 0.85
MutateUIntMethod · 0.85
UIntFunction · 0.85
IndirectUIntFunction · 0.85
ElemWidthMethod · 0.85
CreateBlobFunction · 0.85
ScalarVectorFunction · 0.85
CreateVectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected