simd_reduce_max in core::intrinsics::simd - Rust
Description: Return the maximum element of a vector.

# Function core::intrinsics::simd::simd_reduce_max

source ·

    pub unsafe extern "platform-intrinsic" fn simd_reduce_max<T, U>(
        x: T
    ) -> U

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

Return the maximum element of a vector.

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

`U` must be the element type of `T`.

For floating-point values, uses IEEE-754 `maxNum`.