| 36 | } |
| 37 | |
| 38 | LeafCount |
| 39 | LeafCount::full(const LeafCount n) |
| 40 | { |
| 41 | auto w = uint32_t(1); |
| 42 | while (w < n.val) { |
| 43 | w <<= 1U; |
| 44 | } |
| 45 | return LeafCount{ w }; |
| 46 | } |
| 47 | |
| 48 | NodeCount::NodeCount(const LeafCount n) |
| 49 | : UInt32(2 * (n.val - 1) + 1) |
nothing calls this directly
no outgoing calls
no test coverage detected