MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / ComponentSizeShiftWidth

Function ComponentSizeShiftWidth

Bcore/src/main/cpp/dex/primitive.h:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static constexpr size_t kObjectReferenceSize = 4;
29
30constexpr size_t ComponentSizeShiftWidth(size_t component_size) {
31 return component_size == 1u ? 0u :
32 component_size == 2u ? 1u :
33 component_size == 4u ? 2u :
34 component_size == 8u ? 3u : 0u;
35}
36
37class Primitive {
38 public:

Callers 1

ComponentSizeShiftMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected