Initial commit.
This commit is contained in:
15
tests/popcnt-1.ispc
Normal file
15
tests/popcnt-1.ispc
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
float a = aFOO[programIndex];
|
||||
RET[programIndex] = popcnt((int)a);
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int pc[16] = { 1, 1, 2, 1, 2, 2, 3, 1, 1, 2, 2, 3, 2, 3, 3, 4 };
|
||||
RET[programIndex] = pc[programIndex];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user