Skip to content

scatter and gather are not strict provenance compatible #271

Closed
rust-lang/rust
#95961
@RalfJung

Description

@RalfJung

The implementations of gather and scatter in portable-simd currently are not compatible with strict provenance. Specifically, it is SimdConstPtr::wrapping_add that transmutes a vector of pointers to a vector of integers, does integer arithmetic, and then transmutes back the result. It also has safety comments that are somewhat in conflict with what I am writing in rust-lang/rust#95547. ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions