MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / WidthU

Function WidthU

native/thirdpart/flatbuffers/flexbuffers.h:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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