Skip to content

Replace int with simd in Mask function naming? #477

@okaneco

Description

@okaneco

I've seen this come up as a stumbling block where these functions were interpreted as relating to signed integer bitmasks.

I think this change would make it more clear what these functions do, along with making it easier to discover them in an IDE or docs as the "obvious" name for these functions.

Before After
from_int from_simd
from_int_unchecked from_simd_unchecked
to_int to_simd

As for the naming convention, there's (unstable) precedence in std with the as_simd/as_simd_mut wrappers over align_to. I think the naming here should incorporate simd somewhere in these Mask functions even if it ends up as from_simd_int or from_int_simd.

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