"is mask all on" paradigm to be added to stdlib
Open
Good First Issue
Standard Library
- Dominant language
- C++
- Stars
- 3k
- Forks
- 352
- PR merge metrics
- No merged PRs in 30d
Description
Doing performance fine tuning, it may be beneficial to have separate code paths if the mask is "all on". Right now there are multiple ways of expressing this paradigm, which are not guaranteed to be optimal on all platforms. Possible ways of checking this are:
1. `__all(__mask)`. Seem to produces good code on all platforms, but uses builtins (that are not recommended for the use outside of standard library)
2. `((1<
Contributor guide
Assessment
This issue has not been assessed yet.