Files
ispc/tests/psubus_i16.ispc
2013-12-06 17:20:37 +04:00

12 lines
301 B
Plaintext

export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
uniform unsigned int8 a = 0, b = 32767; // min and max unsigned int16
RET[programIndex] = psubus(a, b);
}
export void result(uniform float RET[]) {
RET[programIndex] = 0;
}