Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.19.0/tests/popcnt-4.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

17 lines
431 B
Plaintext

#include "../test_static.isph"
task void f_f(uniform float RET[4], uniform float aFOO[]) {
int64 a = aFOO[programIndex];
a = (a < 3) ? 1 : 0;
if ((programIndex & 1) != 0)
a |= ((int64)1 << 36);
RET[programIndex] = popcnt(a);
}
task void result(uniform float RET[]) {
RET[programIndex] = 0;
if (programIndex & 1)
++RET[programIndex];
if (programIndex < 2)
++RET[programIndex];
}