patch for LLVM 3.3 and test correction at avx2

This commit is contained in:
Ilia Filippov
2013-11-18 13:44:59 +04:00
parent 4977933d81
commit 4579d339ea
2 changed files with 54 additions and 2 deletions

View File

@@ -3,8 +3,9 @@ export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
RET[programIndex] = (exp(-log(1/a)) - a) < 1e-7 ? 1 : 0;
float a = aFOO[programIndex];
// calculation error 1e-6 is the same as in icc
RET[programIndex] = (exp(-log(1/a)) - a) < 1e-6 ? 1 : 0;
}
export void result(uniform float RET[4]) {