pub struct SveArch;Expand description
AArch64 SVE architecture ZST marker.
The current stable implementation uses the same real lane-emulated kernel
family as other non-native (architecture, scalar) pairs. Native SVE
intrinsics can replace this implementation once stable Rust exposes the
required scalable-vector types.
Trait Implementations§
impl Copy for SveArch
impl Eq for SveArch
Source§impl SimdArch for SveArch
impl SimdArch for SveArch
Source§const NAME: &'static str = "sve-emulated"
const NAME: &'static str = "sve-emulated"
Human-readable ISA name (
"avx2", "avx512", "neon", "scalar").Source§const REGISTER_WIDTH_BITS: u32 = 512
const REGISTER_WIDTH_BITS: u32 = 512
Width of vector registers in bits. Read more
Source§const ISA_FAMILY: IsaFamily = IsaFamily::AArch64
const ISA_FAMILY: IsaFamily = IsaFamily::AArch64
ISA family for this architecture.
Source§const FMA_THROUGHPUT_HINT: u32 = 4
const FMA_THROUGHPUT_HINT: u32 = 4
Source§fn is_runtime_supported() -> bool
fn is_runtime_supported() -> bool
Returns true when the current host may execute this architecture’s
native instructions from safe wrappers. Read more
Source§impl SimdKernel<f32> for SveArch
impl SimdKernel<f32> for SveArch
Source§const LANE_COUNT: usize = 16
const LANE_COUNT: usize = 16
Number of primitive elements of type
T in one Vector.Source§const UNROLL_FACTOR: usize = 4
const UNROLL_FACTOR: usize = 4
Loop unrolling register accumulation factor to break loop-carried dependency chains.
Source§type Vector = [f32; 16]
type Vector = [f32; 16]
The underlying raw register/vector type for this architecture and element type.
Source§unsafe fn load_aligned(ptr: *const f32) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn load_aligned(ptr: *const f32) -> <SveArch as SimdKernel<f32>>::Vector
Load a vector from an aligned pointer. Read more
Source§unsafe fn load_unaligned(
ptr: *const f32,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn load_unaligned( ptr: *const f32, ) -> <SveArch as SimdKernel<f32>>::Vector
Load a vector from an unaligned pointer. Read more
Source§unsafe fn store_aligned(
ptr: *mut f32,
val: <SveArch as SimdKernel<f32>>::Vector,
)
unsafe fn store_aligned( ptr: *mut f32, val: <SveArch as SimdKernel<f32>>::Vector, )
Store a vector to an aligned pointer. Read more
Source§unsafe fn store_unaligned(
ptr: *mut f32,
val: <SveArch as SimdKernel<f32>>::Vector,
)
unsafe fn store_unaligned( ptr: *mut f32, val: <SveArch as SimdKernel<f32>>::Vector, )
Store a vector to an unaligned pointer. Read more
Source§unsafe fn add(
a: <SveArch as SimdKernel<f32>>::Vector,
b: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn add( a: <SveArch as SimdKernel<f32>>::Vector, b: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Vector
Elementwise addition:
a + b. Read moreSource§unsafe fn mul(
a: <SveArch as SimdKernel<f32>>::Vector,
b: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn mul( a: <SveArch as SimdKernel<f32>>::Vector, b: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Vector
Elementwise multiplication:
a * b. Read moreSource§unsafe fn sub(
a: <SveArch as SimdKernel<f32>>::Vector,
b: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn sub( a: <SveArch as SimdKernel<f32>>::Vector, b: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Vector
Elementwise subtraction:
a - b. Read moreSource§unsafe fn neg(
a: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn neg( a: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Vector
Elementwise negate:
-a. Read moreSource§unsafe fn fmadd(
a: <SveArch as SimdKernel<f32>>::Vector,
b: <SveArch as SimdKernel<f32>>::Vector,
c: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn fmadd( a: <SveArch as SimdKernel<f32>>::Vector, b: <SveArch as SimdKernel<f32>>::Vector, c: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Vector
Fused multiply-add:
(a * b) + c. Read moreSource§unsafe fn sum_reduce(v: <SveArch as SimdKernel<f32>>::Vector) -> f32
unsafe fn sum_reduce(v: <SveArch as SimdKernel<f32>>::Vector) -> f32
Horizontal sum of all lanes. Read more
Source§unsafe fn compress(
src: <SveArch as SimdKernel<f32>>::Vector,
mask: <SveArch as SimdKernel<f32>>::Mask,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn compress( src: <SveArch as SimdKernel<f32>>::Vector, mask: <SveArch as SimdKernel<f32>>::Mask, ) -> <SveArch as SimdKernel<f32>>::Vector
Compress: pack selected lanes (where
mask[i]=1) into the low lanes of the result. Read moreSource§unsafe fn expand(
src: <SveArch as SimdKernel<f32>>::Vector,
mask: <SveArch as SimdKernel<f32>>::Mask,
fill: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn expand( src: <SveArch as SimdKernel<f32>>::Vector, mask: <SveArch as SimdKernel<f32>>::Mask, fill: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Vector
Source§unsafe fn gather(
base: *const f32,
indices: <SveArch as SimdKernel<f32>>::IndexVector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn gather( base: *const f32, indices: <SveArch as SimdKernel<f32>>::IndexVector, ) -> <SveArch as SimdKernel<f32>>::Vector
Source§unsafe fn gather_masked(
base: *const f32,
indices: <SveArch as SimdKernel<f32>>::IndexVector,
mask: <SveArch as SimdKernel<f32>>::Mask,
src: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn gather_masked( base: *const f32, indices: <SveArch as SimdKernel<f32>>::IndexVector, mask: <SveArch as SimdKernel<f32>>::Mask, src: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Vector
Masked gather: gather active lanes; inactive lanes take value from
src. Read moreSource§unsafe fn mask_from_bools(bits: &[bool]) -> <SveArch as SimdKernel<f32>>::Mask
unsafe fn mask_from_bools(bits: &[bool]) -> <SveArch as SimdKernel<f32>>::Mask
Construct a mask from a slice of booleans (length must equal
LANE_COUNT). Read moreSource§unsafe fn leading_k_mask(k: usize) -> <SveArch as SimdKernel<f32>>::Mask
unsafe fn leading_k_mask(k: usize) -> <SveArch as SimdKernel<f32>>::Mask
Construct a mask with the first
k lanes active and the rest inactive. Read moreSource§unsafe fn splat(val: f32) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn splat(val: f32) -> <SveArch as SimdKernel<f32>>::Vector
Broadcast a scalar value to all lanes. Read more
Source§unsafe fn mask_to_bitmask(mask: <SveArch as SimdKernel<f32>>::Mask) -> u64
unsafe fn mask_to_bitmask(mask: <SveArch as SimdKernel<f32>>::Mask) -> u64
Convert the native mask back to a raw
u64 bitmask. Read moreSource§unsafe fn mask_to_vector(
mask: <SveArch as SimdKernel<f32>>::Mask,
) -> <SveArch as SimdKernel<f32>>::Vector
unsafe fn mask_to_vector( mask: <SveArch as SimdKernel<f32>>::Mask, ) -> <SveArch as SimdKernel<f32>>::Vector
Convert the native mask back to a vector register where active lanes
are set to
T::ALL_ONES and inactive lanes to T::ZERO. Read moreSource§unsafe fn vector_to_mask(
v: <SveArch as SimdKernel<f32>>::Vector,
) -> <SveArch as SimdKernel<f32>>::Mask
unsafe fn vector_to_mask( v: <SveArch as SimdKernel<f32>>::Vector, ) -> <SveArch as SimdKernel<f32>>::Mask
Convert a comparison-result vector into the native mask, the inverse of
SimdKernel::mask_to_vector. Read moreSource§const LANE_BOUND_CHECK: () = _
const LANE_BOUND_CHECK: () = _
Compile-time guard that
LANE_COUNT fits the fixed
MAX_SIMD_LANES scalar-fallback stack buffers. Referencing this const in
the buffer-using default methods forces the assertion to be evaluated for
each concrete backend at monomorphization, turning a would-be silent
stack-buffer overflow into a compile error.Source§const SUPPORTS_NT_STORE: bool = false
const SUPPORTS_NT_STORE: bool = false
Whether this backend provides a non-temporal (cache-bypassing) store
via
store_streaming. Backends leaving this
false keep the regular store default; callers gate the streaming path
on this const so it is a compile-time branch, dead-code-eliminated where
unsupported.Source§unsafe fn store_streaming(ptr: *mut T, val: Self::Vector)
unsafe fn store_streaming(ptr: *mut T, val: Self::Vector)
Store a vector with a non-temporal (streaming) hint that bypasses the
cache, avoiding the read-for-ownership traffic a normal write-allocate
pays for write-only data larger than the last-level cache (measured 1.71×
on out-of-LLC AVX2 f32 elementwise writes; see
streaming_bench). Read moreSource§fn stream_write_barrier()
fn stream_write_barrier()
Fence ordering this backend’s non-temporal stores before subsequent
reads. No-op by default (only meaningful where
store_streaming is a weakly ordered
non-temporal store).Source§unsafe fn masked_load_unaligned(
ptr: *const T,
mask: Self::Mask,
src: Self::Vector,
) -> Self::Vector
unsafe fn masked_load_unaligned( ptr: *const T, mask: Self::Mask, src: Self::Vector, ) -> Self::Vector
Source§unsafe fn masked_store_unaligned(
ptr: *mut T,
mask: Self::Mask,
val: Self::Vector,
)
unsafe fn masked_store_unaligned( ptr: *mut T, mask: Self::Mask, val: Self::Vector, )
Masked store: active lanes written to
ptr, inactive lanes left unchanged. Read moreSource§unsafe fn masked_add(
a: Self::Vector,
b: Self::Vector,
mask: Self::Mask,
src: Self::Vector,
) -> Self::Vector
unsafe fn masked_add( a: Self::Vector, b: Self::Vector, mask: Self::Mask, src: Self::Vector, ) -> Self::Vector
Source§unsafe fn masked_mul(
a: Self::Vector,
b: Self::Vector,
mask: Self::Mask,
src: Self::Vector,
) -> Self::Vector
unsafe fn masked_mul( a: Self::Vector, b: Self::Vector, mask: Self::Mask, src: Self::Vector, ) -> Self::Vector
Source§unsafe fn masked_fmadd(
a: Self::Vector,
b: Self::Vector,
c: Self::Vector,
mask: Self::Mask,
) -> Self::Vector
unsafe fn masked_fmadd( a: Self::Vector, b: Self::Vector, c: Self::Vector, mask: Self::Mask, ) -> Self::Vector
Source§unsafe fn masked_sum_reduce(v: Self::Vector, mask: Self::Mask) -> T
unsafe fn masked_sum_reduce(v: Self::Vector, mask: Self::Mask) -> T
Masked horizontal sum: only lanes where
mask[i]=1 contribute. Read moreSource§unsafe fn mask_from_bitmask(bm: u64) -> Self::Mask
unsafe fn mask_from_bitmask(bm: u64) -> Self::Mask
Convert a raw
u64 bitmask to the architecture-native mask type. Read moreSource§unsafe fn scan_vector<Op, SMode>(v: Self::Vector, carry: T) -> (Self::Vector, T)
unsafe fn scan_vector<Op, SMode>(v: Self::Vector, carry: T) -> (Self::Vector, T)
Perform an intra-vector prefix scan (inclusive or exclusive) of the vector,
using the specified
ScanOp strategy and starting carry value.
Returns the scanned vector and the final carry value. Read moreSource§unsafe fn div(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn div(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise division:
a / b. Read moreSource§unsafe fn bitand(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn bitand(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise bitwise AND:
a & b. Read moreSource§unsafe fn bitor(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn bitor(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise bitwise OR:
a | b. Read moreSource§unsafe fn bitxor(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn bitxor(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise bitwise XOR:
a ^ b. Read moreSource§unsafe fn recip_sqrt(a: Self::Vector) -> Self::Vector
unsafe fn recip_sqrt(a: Self::Vector) -> Self::Vector
Source§unsafe fn cmp_eq(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_eq(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise equal:
a == b. Read moreSource§unsafe fn cmp_ne(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_ne(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise not equal:
a != b. Read moreSource§unsafe fn cmp_lt(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_lt(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise less than:
a < b. Read moreSource§unsafe fn cmp_le(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_le(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise less than or equal:
a <= b. Read moreSource§unsafe fn cmp_gt(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_gt(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise greater than:
a > b. Read moreSource§unsafe fn cmp_ge(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_ge(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise greater than or equal:
a >= b. Read moreSource§unsafe fn blend(
mask: Self::Vector,
true_val: Self::Vector,
false_val: Self::Vector,
) -> Self::Vector
unsafe fn blend( mask: Self::Vector, true_val: Self::Vector, false_val: Self::Vector, ) -> Self::Vector
Elementwise blend: select lanes from
true_val where the sign bit of mask is set,
and from false_val otherwise. Read moreSource§unsafe fn min_reduce(v: Self::Vector) -> T
unsafe fn min_reduce(v: Self::Vector) -> T
Horizontal minimum across all lanes. Read more
Source§unsafe fn max_reduce(v: Self::Vector) -> T
unsafe fn max_reduce(v: Self::Vector) -> T
Horizontal maximum across all lanes. Read more
Source§unsafe fn popcount(a: Self::Vector) -> Self::Vector
unsafe fn popcount(a: Self::Vector) -> Self::Vector
Elementwise population count (number of set bits). Read more
Source§unsafe fn horizontal_bitwise_and(v: Self::Vector) -> T
unsafe fn horizontal_bitwise_and(v: Self::Vector) -> T
Horizontal bitwise AND across all lanes. Read more
Source§unsafe fn horizontal_bitwise_or(v: Self::Vector) -> T
unsafe fn horizontal_bitwise_or(v: Self::Vector) -> T
Horizontal bitwise OR across all lanes. Read more
Source§unsafe fn horizontal_bitwise_xor(v: Self::Vector) -> T
unsafe fn horizontal_bitwise_xor(v: Self::Vector) -> T
Horizontal bitwise XOR across all lanes. Read more
Source§unsafe fn swap_adjacent(v: Self::Vector) -> Self::Vector
unsafe fn swap_adjacent(v: Self::Vector) -> Self::Vector
Swap each adjacent lane pair:
[a0, a1, a2, a3, ...] -> [a1, a0, a3, a2, ...]. Read moreSource§unsafe fn dup_even(v: Self::Vector) -> Self::Vector
unsafe fn dup_even(v: Self::Vector) -> Self::Vector
Duplicate even lanes into odd lanes:
[a0, a1, a2, a3, ...] -> [a0, a0, a2, a2, ...]. Read moreSource§unsafe fn dup_odd(v: Self::Vector) -> Self::Vector
unsafe fn dup_odd(v: Self::Vector) -> Self::Vector
Duplicate odd lanes into even lanes:
[a0, a1, a2, a3, ...] -> [a1, a1, a3, a3, ...]. Read moreSource§impl SimdKernel<f64> for SveArch
impl SimdKernel<f64> for SveArch
Source§const LANE_COUNT: usize = 8
const LANE_COUNT: usize = 8
Number of primitive elements of type
T in one Vector.Source§const UNROLL_FACTOR: usize = 4
const UNROLL_FACTOR: usize = 4
Loop unrolling register accumulation factor to break loop-carried dependency chains.
Source§type Vector = [f64; 8]
type Vector = [f64; 8]
The underlying raw register/vector type for this architecture and element type.
Source§unsafe fn load_aligned(ptr: *const f64) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn load_aligned(ptr: *const f64) -> <SveArch as SimdKernel<f64>>::Vector
Load a vector from an aligned pointer. Read more
Source§unsafe fn load_unaligned(
ptr: *const f64,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn load_unaligned( ptr: *const f64, ) -> <SveArch as SimdKernel<f64>>::Vector
Load a vector from an unaligned pointer. Read more
Source§unsafe fn store_aligned(
ptr: *mut f64,
val: <SveArch as SimdKernel<f64>>::Vector,
)
unsafe fn store_aligned( ptr: *mut f64, val: <SveArch as SimdKernel<f64>>::Vector, )
Store a vector to an aligned pointer. Read more
Source§unsafe fn store_unaligned(
ptr: *mut f64,
val: <SveArch as SimdKernel<f64>>::Vector,
)
unsafe fn store_unaligned( ptr: *mut f64, val: <SveArch as SimdKernel<f64>>::Vector, )
Store a vector to an unaligned pointer. Read more
Source§unsafe fn add(
a: <SveArch as SimdKernel<f64>>::Vector,
b: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn add( a: <SveArch as SimdKernel<f64>>::Vector, b: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Vector
Elementwise addition:
a + b. Read moreSource§unsafe fn mul(
a: <SveArch as SimdKernel<f64>>::Vector,
b: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn mul( a: <SveArch as SimdKernel<f64>>::Vector, b: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Vector
Elementwise multiplication:
a * b. Read moreSource§unsafe fn sub(
a: <SveArch as SimdKernel<f64>>::Vector,
b: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn sub( a: <SveArch as SimdKernel<f64>>::Vector, b: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Vector
Elementwise subtraction:
a - b. Read moreSource§unsafe fn neg(
a: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn neg( a: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Vector
Elementwise negate:
-a. Read moreSource§unsafe fn fmadd(
a: <SveArch as SimdKernel<f64>>::Vector,
b: <SveArch as SimdKernel<f64>>::Vector,
c: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn fmadd( a: <SveArch as SimdKernel<f64>>::Vector, b: <SveArch as SimdKernel<f64>>::Vector, c: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Vector
Fused multiply-add:
(a * b) + c. Read moreSource§unsafe fn sum_reduce(v: <SveArch as SimdKernel<f64>>::Vector) -> f64
unsafe fn sum_reduce(v: <SveArch as SimdKernel<f64>>::Vector) -> f64
Horizontal sum of all lanes. Read more
Source§unsafe fn compress(
src: <SveArch as SimdKernel<f64>>::Vector,
mask: <SveArch as SimdKernel<f64>>::Mask,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn compress( src: <SveArch as SimdKernel<f64>>::Vector, mask: <SveArch as SimdKernel<f64>>::Mask, ) -> <SveArch as SimdKernel<f64>>::Vector
Compress: pack selected lanes (where
mask[i]=1) into the low lanes of the result. Read moreSource§unsafe fn expand(
src: <SveArch as SimdKernel<f64>>::Vector,
mask: <SveArch as SimdKernel<f64>>::Mask,
fill: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn expand( src: <SveArch as SimdKernel<f64>>::Vector, mask: <SveArch as SimdKernel<f64>>::Mask, fill: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Vector
Source§unsafe fn gather(
base: *const f64,
indices: <SveArch as SimdKernel<f64>>::IndexVector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn gather( base: *const f64, indices: <SveArch as SimdKernel<f64>>::IndexVector, ) -> <SveArch as SimdKernel<f64>>::Vector
Source§unsafe fn gather_masked(
base: *const f64,
indices: <SveArch as SimdKernel<f64>>::IndexVector,
mask: <SveArch as SimdKernel<f64>>::Mask,
src: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn gather_masked( base: *const f64, indices: <SveArch as SimdKernel<f64>>::IndexVector, mask: <SveArch as SimdKernel<f64>>::Mask, src: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Vector
Masked gather: gather active lanes; inactive lanes take value from
src. Read moreSource§unsafe fn mask_from_bools(bits: &[bool]) -> <SveArch as SimdKernel<f64>>::Mask
unsafe fn mask_from_bools(bits: &[bool]) -> <SveArch as SimdKernel<f64>>::Mask
Construct a mask from a slice of booleans (length must equal
LANE_COUNT). Read moreSource§unsafe fn leading_k_mask(k: usize) -> <SveArch as SimdKernel<f64>>::Mask
unsafe fn leading_k_mask(k: usize) -> <SveArch as SimdKernel<f64>>::Mask
Construct a mask with the first
k lanes active and the rest inactive. Read moreSource§unsafe fn splat(val: f64) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn splat(val: f64) -> <SveArch as SimdKernel<f64>>::Vector
Broadcast a scalar value to all lanes. Read more
Source§unsafe fn mask_to_bitmask(mask: <SveArch as SimdKernel<f64>>::Mask) -> u64
unsafe fn mask_to_bitmask(mask: <SveArch as SimdKernel<f64>>::Mask) -> u64
Convert the native mask back to a raw
u64 bitmask. Read moreSource§unsafe fn mask_to_vector(
mask: <SveArch as SimdKernel<f64>>::Mask,
) -> <SveArch as SimdKernel<f64>>::Vector
unsafe fn mask_to_vector( mask: <SveArch as SimdKernel<f64>>::Mask, ) -> <SveArch as SimdKernel<f64>>::Vector
Convert the native mask back to a vector register where active lanes
are set to
T::ALL_ONES and inactive lanes to T::ZERO. Read moreSource§unsafe fn vector_to_mask(
v: <SveArch as SimdKernel<f64>>::Vector,
) -> <SveArch as SimdKernel<f64>>::Mask
unsafe fn vector_to_mask( v: <SveArch as SimdKernel<f64>>::Vector, ) -> <SveArch as SimdKernel<f64>>::Mask
Convert a comparison-result vector into the native mask, the inverse of
SimdKernel::mask_to_vector. Read moreSource§const LANE_BOUND_CHECK: () = _
const LANE_BOUND_CHECK: () = _
Compile-time guard that
LANE_COUNT fits the fixed
MAX_SIMD_LANES scalar-fallback stack buffers. Referencing this const in
the buffer-using default methods forces the assertion to be evaluated for
each concrete backend at monomorphization, turning a would-be silent
stack-buffer overflow into a compile error.Source§const SUPPORTS_NT_STORE: bool = false
const SUPPORTS_NT_STORE: bool = false
Whether this backend provides a non-temporal (cache-bypassing) store
via
store_streaming. Backends leaving this
false keep the regular store default; callers gate the streaming path
on this const so it is a compile-time branch, dead-code-eliminated where
unsupported.Source§unsafe fn store_streaming(ptr: *mut T, val: Self::Vector)
unsafe fn store_streaming(ptr: *mut T, val: Self::Vector)
Store a vector with a non-temporal (streaming) hint that bypasses the
cache, avoiding the read-for-ownership traffic a normal write-allocate
pays for write-only data larger than the last-level cache (measured 1.71×
on out-of-LLC AVX2 f32 elementwise writes; see
streaming_bench). Read moreSource§fn stream_write_barrier()
fn stream_write_barrier()
Fence ordering this backend’s non-temporal stores before subsequent
reads. No-op by default (only meaningful where
store_streaming is a weakly ordered
non-temporal store).Source§unsafe fn masked_load_unaligned(
ptr: *const T,
mask: Self::Mask,
src: Self::Vector,
) -> Self::Vector
unsafe fn masked_load_unaligned( ptr: *const T, mask: Self::Mask, src: Self::Vector, ) -> Self::Vector
Source§unsafe fn masked_store_unaligned(
ptr: *mut T,
mask: Self::Mask,
val: Self::Vector,
)
unsafe fn masked_store_unaligned( ptr: *mut T, mask: Self::Mask, val: Self::Vector, )
Masked store: active lanes written to
ptr, inactive lanes left unchanged. Read moreSource§unsafe fn masked_add(
a: Self::Vector,
b: Self::Vector,
mask: Self::Mask,
src: Self::Vector,
) -> Self::Vector
unsafe fn masked_add( a: Self::Vector, b: Self::Vector, mask: Self::Mask, src: Self::Vector, ) -> Self::Vector
Source§unsafe fn masked_mul(
a: Self::Vector,
b: Self::Vector,
mask: Self::Mask,
src: Self::Vector,
) -> Self::Vector
unsafe fn masked_mul( a: Self::Vector, b: Self::Vector, mask: Self::Mask, src: Self::Vector, ) -> Self::Vector
Source§unsafe fn masked_fmadd(
a: Self::Vector,
b: Self::Vector,
c: Self::Vector,
mask: Self::Mask,
) -> Self::Vector
unsafe fn masked_fmadd( a: Self::Vector, b: Self::Vector, c: Self::Vector, mask: Self::Mask, ) -> Self::Vector
Source§unsafe fn masked_sum_reduce(v: Self::Vector, mask: Self::Mask) -> T
unsafe fn masked_sum_reduce(v: Self::Vector, mask: Self::Mask) -> T
Masked horizontal sum: only lanes where
mask[i]=1 contribute. Read moreSource§unsafe fn mask_from_bitmask(bm: u64) -> Self::Mask
unsafe fn mask_from_bitmask(bm: u64) -> Self::Mask
Convert a raw
u64 bitmask to the architecture-native mask type. Read moreSource§unsafe fn scan_vector<Op, SMode>(v: Self::Vector, carry: T) -> (Self::Vector, T)
unsafe fn scan_vector<Op, SMode>(v: Self::Vector, carry: T) -> (Self::Vector, T)
Perform an intra-vector prefix scan (inclusive or exclusive) of the vector,
using the specified
ScanOp strategy and starting carry value.
Returns the scanned vector and the final carry value. Read moreSource§unsafe fn div(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn div(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise division:
a / b. Read moreSource§unsafe fn bitand(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn bitand(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise bitwise AND:
a & b. Read moreSource§unsafe fn bitor(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn bitor(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise bitwise OR:
a | b. Read moreSource§unsafe fn bitxor(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn bitxor(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise bitwise XOR:
a ^ b. Read moreSource§unsafe fn recip_sqrt(a: Self::Vector) -> Self::Vector
unsafe fn recip_sqrt(a: Self::Vector) -> Self::Vector
Source§unsafe fn cmp_eq(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_eq(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise equal:
a == b. Read moreSource§unsafe fn cmp_ne(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_ne(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise not equal:
a != b. Read moreSource§unsafe fn cmp_lt(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_lt(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise less than:
a < b. Read moreSource§unsafe fn cmp_le(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_le(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise less than or equal:
a <= b. Read moreSource§unsafe fn cmp_gt(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_gt(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise greater than:
a > b. Read moreSource§unsafe fn cmp_ge(a: Self::Vector, b: Self::Vector) -> Self::Vector
unsafe fn cmp_ge(a: Self::Vector, b: Self::Vector) -> Self::Vector
Elementwise greater than or equal:
a >= b. Read moreSource§unsafe fn blend(
mask: Self::Vector,
true_val: Self::Vector,
false_val: Self::Vector,
) -> Self::Vector
unsafe fn blend( mask: Self::Vector, true_val: Self::Vector, false_val: Self::Vector, ) -> Self::Vector
Elementwise blend: select lanes from
true_val where the sign bit of mask is set,
and from false_val otherwise. Read moreSource§unsafe fn min_reduce(v: Self::Vector) -> T
unsafe fn min_reduce(v: Self::Vector) -> T
Horizontal minimum across all lanes. Read more
Source§unsafe fn max_reduce(v: Self::Vector) -> T
unsafe fn max_reduce(v: Self::Vector) -> T
Horizontal maximum across all lanes. Read more
Source§unsafe fn popcount(a: Self::Vector) -> Self::Vector
unsafe fn popcount(a: Self::Vector) -> Self::Vector
Elementwise population count (number of set bits). Read more
Source§unsafe fn horizontal_bitwise_and(v: Self::Vector) -> T
unsafe fn horizontal_bitwise_and(v: Self::Vector) -> T
Horizontal bitwise AND across all lanes. Read more
Source§unsafe fn horizontal_bitwise_or(v: Self::Vector) -> T
unsafe fn horizontal_bitwise_or(v: Self::Vector) -> T
Horizontal bitwise OR across all lanes. Read more
Source§unsafe fn horizontal_bitwise_xor(v: Self::Vector) -> T
unsafe fn horizontal_bitwise_xor(v: Self::Vector) -> T
Horizontal bitwise XOR across all lanes. Read more
Source§unsafe fn swap_adjacent(v: Self::Vector) -> Self::Vector
unsafe fn swap_adjacent(v: Self::Vector) -> Self::Vector
Swap each adjacent lane pair:
[a0, a1, a2, a3, ...] -> [a1, a0, a3, a2, ...]. Read moreSource§unsafe fn dup_even(v: Self::Vector) -> Self::Vector
unsafe fn dup_even(v: Self::Vector) -> Self::Vector
Duplicate even lanes into odd lanes:
[a0, a1, a2, a3, ...] -> [a0, a0, a2, a2, ...]. Read moreSource§unsafe fn dup_odd(v: Self::Vector) -> Self::Vector
unsafe fn dup_odd(v: Self::Vector) -> Self::Vector
Duplicate odd lanes into even lanes:
[a0, a1, a2, a3, ...] -> [a1, a1, a3, a3, ...]. Read moreimpl StructuralPartialEq for SveArch
Auto Trait Implementations§
impl Freeze for SveArch
impl RefUnwindSafe for SveArch
impl Send for SveArch
impl Sync for SveArch
impl Unpin for SveArch
impl UnsafeUnpin for SveArch
impl UnwindSafe for SveArch
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.