Skip to content

Scatter/gather for non-pointer types? #236

@rileylyman

Description

@rileylyman

I'm new to this crate, so I don't know if I just haven't looked hard enough, but it seems like there is no scatter/gather or strided loads/stores for the generic Simd<[T,n]> trait. Is it possible to do strided or gather/scatter memory operations for packed vectors that don't contain pointers? If not, are there any plans on adding this? For example, something like

let arr = [1, 2, 3, 4, 5, 6, 7, 8];
let vec1 = f64x4::load_stride(arr[..], 2); // [1,3,5,7]
let vec2 = f64x4::load_gather(arr[..], [0,3,5,6,7]); // [1,4,6,7,8]

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions