Merge remote-tracking branch 'upstream/master' into nvptx

This commit is contained in:
Evghenii
2013-11-22 08:10:08 +01:00
33 changed files with 795 additions and 394 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]) {