about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Ulimoen <magnus@ulimoen.dev>2021-09-29 17:01:27 +0000
committerMagnus Ulimoen <magnus@ulimoen.dev>2021-09-29 17:20:07 +0000
commitec05dfbbf9f77f706feb4858aa6b38e4d84bf12f (patch)
treecdc1e060a64a875ec92bfc83403e66bb898fd7f3
parent4fbccafc66fcec3f36d40e4993fc4567c7a89c29 (diff)
downloadrust-ec05dfbbf9f77f706feb4858aa6b38e4d84bf12f.tar.gz
rust-ec05dfbbf9f77f706feb4858aa6b38e4d84bf12f.zip
Add associated LANES const
-rw-r--r--crates/core_simd/src/vector.rs3
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