Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masked compare and floating point classifications #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mazimkhan
Copy link
Member

@mazimkhan mazimkhan commented Nov 18, 2024

Introduces:

  • MaskedIsNaN(v): returns mask indicating whether v[i] is "not a number" (unordered) or false if m[i] is false.

  • MaskedIsInf(v): returns mask indicating whether v[i] is positive or negative infinity or false if m[i] is false.

  • MaskedIsFinite(v): returns mask indicating whether v[i] is neither NaN nor infinity, i.e. normal, subnormal or zero or false if m[i] is false. Equivalent to Not(Or(IsNaN(v), IsInf(v))).

  • MaskedCompEq(m, a, b), MaskedCompNe(m, a, b), MaskedCompLt(m, a, b), MaskedCompGt(m, a, b), MaskedCompLe(m, a, b), MaskedCompGe(m, a, b), returning the output for all versions of ==, !=, <, >, >=, <=, or false if m[i] is false.

All operations are written for both arm_sve-inl.h and generic_ops-inl.h and, equally, tests are included for all operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant