ispc / ispc/ispc

"is mask all on" paradigm to be added to stdlib

Open
#2,296 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.