The number of bytes in the operand.
(&self)
| 1071 | |
| 1072 | /// The number of bytes in the operand. |
| 1073 | pub fn bytes(&self) -> u32 { |
| 1074 | match self { |
| 1075 | Self::S8 => 1, |
| 1076 | Self::S16 => 2, |
| 1077 | Self::S32 => 4, |
| 1078 | Self::S64 => 8, |
| 1079 | Self::S128 => 16, |
| 1080 | } |
| 1081 | } |
| 1082 | |
| 1083 | /// The binary logarithm of the number of bits in the operand. |
| 1084 | pub fn log2(&self) -> u8 { |
no outgoing calls
no test coverage detected