ChillFish8 / cfavml

An unopinionated SIMD vector operation library for Rust, supporting no_std and no-alloc workloads.
Apache License 2.0
3 stars 1 forks source link

Implement `eq`, `ne`, `lt`, `gt`, `lte`, and `gte` vector operations #2

Closed ChillFish8 closed 2 months ago

ChillFish8 commented 3 months ago

The aim of these routines is to be able to compare two provided vectors and get back a resulting mask of 0's and 1s indicating true or false values.

likely operation API naming:

<dtype>_x<dims>_<arch>_nofma_cmp_eq_vector(a: &[T], b: &[T], result: &mut [T])

There can also be value-specialized operations:

<dtype>_x<dims>_<arch>_nofma_cmp_eq_value(value: T, a: &[T], result: &mut [T])

Naming might be difficult here, because there are a few different scenarios for routines: