Get the number of lanes in this SIMD vector type. A scalar type is the same as a SIMD vector type with one lane, so it returns 1.
(self)
| 273 | /// |
| 274 | /// A scalar type is the same as a SIMD vector type with one lane, so it returns 1. |
| 275 | pub fn lane_count(self) -> u32 { |
| 276 | if self.is_dynamic_vector() { |
| 277 | 0 |
| 278 | } else { |
| 279 | 1 << self.log2_lane_count() |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | /// Get the total number of bits used to represent this type. |
| 284 | pub fn bits(self) -> u32 { |
no test coverage detected