Files
ispc/tests/double-5.ispc
2011-06-21 12:48:50 -07:00

16 lines
368 B
Plaintext

export uniform int width() { return programCount; }
export void f_di(uniform float RET[], uniform double aFOO[], uniform int bFOO[]) {
double a = aFOO[programIndex];
int b = bFOO[programIndex];
if (a+4 == b)
{ RET[programIndex] = 1; return; }
RET[programIndex] = 0;
}
export void result(uniform float RET[]) {
RET[programIndex] = 1;
}