diff options
| author | Magnus Ulimoen <magnus@ulimoen.dev> | 2021-09-29 17:01:27 +0000 |
|---|---|---|
| committer | Magnus Ulimoen <magnus@ulimoen.dev> | 2021-09-29 17:20:07 +0000 |
| commit | ec05dfbbf9f77f706feb4858aa6b38e4d84bf12f (patch) | |
| tree | cdc1e060a64a875ec92bfc83403e66bb898fd7f3 | |
| parent | 4fbccafc66fcec3f36d40e4993fc4567c7a89c29 (diff) | |
| download | rust-ec05dfbbf9f77f706feb4858aa6b38e4d84bf12f.tar.gz rust-ec05dfbbf9f77f706feb4858aa6b38e4d84bf12f.zip | |
Add associated LANES const
| -rw-r--r-- | crates/core_simd/src/vector.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index 4ccdb9c5a5d..9cefe384264 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -24,6 +24,9 @@ where LaneCount<LANES>: SupportedLaneCount, T: SimdElement, { + /// Number of lanes in this vector. + pub const LANES: usize = LANES; + /// Get the number of lanes in this vector. pub const fn lanes(&self) -> usize { LANES |
