accuracy fix

This commit is contained in:
evghenii
2014-02-11 11:49:03 +01:00
parent f0779f95a3
commit 193bba77b0
20 changed files with 20 additions and 20 deletions

View File

@@ -13,7 +13,7 @@ static double double4(uniform double a, uniform double b, uniform double c,
export uniform int width() { return programCount; }
bool ok(double x, double ref) { return (abs(x - ref) < 1d-16) || abs((x-ref)/ref) < 1d-15; }
bool ok(double x, double ref) { return (abs(x - ref) < 1d-15) || abs((x-ref)/ref) < 1d-14; }
export void f_v(uniform float RET[]) {
double v = double4((9.424787984619140d0),(4.000010000000000d0),(10.000010000000000d0),(10.000010000000000d0));