core::intrinsics::simd

Function simd_reduce_add_ordered

Source
pub unsafe extern "rust-intrinsic" fn simd_reduce_add_ordered<T, U>(
    x: T,
    y: U,
) -> U
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Adds elements within a vector from left to right.

T must be a vector of integer or floating-point primitive types.

U must be the element type of T.

Starting with the value y, add the elements of x and accumulate.