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

Function WidthI

Libs/flatbuffers/flexbuffers.h:196–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196inline BitWidth WidthI(int64_t i) {
197 auto u = static_cast<uint64_t>(i) << 1;
198 return WidthU(i >= 0 ? u : ~u);
199}
200
201inline BitWidth WidthF(double f) {
202 return static_cast<double>(static_cast<float>(f)) == f ? BIT_WIDTH_32

Callers 4

MutateIntMethod · 0.85
MutateUIntMethod · 0.85
IntFunction · 0.85
IndirectIntFunction · 0.85

Calls 1

WidthUFunction · 0.85

Tested by

no test coverage detected