I tested: 1.4.2, 1.5.0, 1.6.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2. Got the
same result with all versions.
Thanks,
-Brian
On Monday, April 16, 2018 at 11:25:12 AM UTC-7, Matt Pharr wrote:
>
> Hm, strange. Here's the implementation of all() from the ispc stdlib:
>
> __declspec(safe)
> static
Hm, strange. Here's the implementation of all() from the ispc stdlib:
__declspec(safe)
static inline uniform bool all(bool v) {
// As with any(), we need to explicitly mask v with the current program
mask
// so we're only looking at the current lanes
#if (ISPC_MASK_BITS == 1)
return
It looks like all(), any(), and none() examine all lanes regardless if
those lanes are active or not. For example,
if (programIndex < 4) {
if (all(programIndex < 4)) {
print("all lanes are less than 4\n");
} else {
print("all lanes are not less than