Get the number of bits in a lane.
(self)
| 66 | |
| 67 | /// Get the number of bits in a lane. |
| 68 | pub fn lane_bits(self) -> u32 { |
| 69 | match self.lane_type() { |
| 70 | I8 => 8, |
| 71 | I16 | F16 => 16, |
| 72 | I32 | F32 => 32, |
| 73 | I64 | F64 => 64, |
| 74 | I128 | F128 => 128, |
| 75 | _ => 0, |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | /// Get the (minimum, maximum) values represented by each lane in the type. |
| 80 | /// Note that these are returned as unsigned 'bit patterns'. |
no test coverage detected