Return the amount of bytes required for the load operation (Note: we do not allow the starting address of the load to be adjusted, and require the size to be a power of 2).
(&self)
| 532 | /// Return the amount of bytes required for the load operation (Note: we do not allow the |
| 533 | /// starting address of the load to be adjusted, and require the size to be a power of 2). |
| 534 | fn required_bytes(&self) -> u8 { |
| 535 | if self.max_bit < self.min_bit { |
| 536 | // No bits are used. |
| 537 | return 0; |
| 538 | } |
| 539 | let required_bits = self.max_bit + 1; |
| 540 | (required_bits.next_power_of_two() / 8).max(1) |
| 541 | } |
| 542 | |
| 543 | fn required_bits(&self) -> u8 { |
| 544 | if self.max_bit < self.min_bit { |
no outgoing calls
no test coverage detected