Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Reduce operations #353

@baryluk

Description

@baryluk

I think SIMD should provide in spec operations to do sum, multiplication, min and max on vectors.

sum would be a.x + a.y + a.z + a.w for example. And be polyfilled or emulated in scalar code if not available in hardware. These are often used at the end of the loop for example and many architectures do support it, and it makes code cleaner to express these reductions using functions and no manual access to lanes.

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