vec_sldw in core::arch::powerpc - Rust
Description: Vector Shift Left Double by Words

Skip to main content

## vec_sldw

# Function vec_sldw

Source

    pub unsafe fn vec_sldw<T, const UIMM2: i32>(a: T, b: T) -> Twhere
        T: VectorSld,

🔬This is a nightly-only experimental API. (`stdarch_powerpc` #111145)
Available on PowerPC and target feature `altivec` and (PowerPC or PowerPC64) only.
Expand description

Vector Shift Left Double by Words

### §Endian considerations

This intrinsic is not endian-neutral, so uses of vec_sldw in big-endian code must be rewritten for little-endian targets.

The concatenation of a and b is done in big-endian fashion (left to right), and the shift is always to the left. This will generally produce surprising results for little- endian targets.