MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / np_bits

Method np_bits

ir/type.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25VoidType Type::voidTy;
26
27unsigned Type::np_bits(bool fromInt) const {
28 if (!fromInt)
29 return 1;
30 auto bw = bits();
31 return min(bw, (unsigned)divide_up(bw * bits_poison_per_byte, bits_byte));
32}
33
34unsigned Type::maxSubBitAccess() const {
35 return 0;

Callers 3

extractMethod · 0.80
updateMethod · 0.80
bytesToValueFunction · 0.80

Calls 1

divide_upFunction · 0.85

Tested by

no test coverage detected