summaryrefslogtreecommitdiff
path: root/generated_tests
diff options
context:
space:
mode:
authorJan Vesely <jano.vesely@gmail.com>2017-10-22 10:50:44 -0400
committerJan Vesely <jan.vesely@rutgers.edu>2017-10-25 11:12:14 -0400
commit3c0a18b0040e27cb40de428258172718124ebf31 (patch)
treee30c72f21635b069369aa2b0112c018df16ce328 /generated_tests
parenta0a355e6686d7ae95098c882c1c96049bc671c63 (diff)
cl: Fix erfc test
python: >>> math.erfc(1.960/math.sqrt(2.0)).hex() '0x1.9990c58859300p-5' float rtne rounds up to 0x1.9990c6p-5 >>> math.erfc(2.576/math.sqrt(2.0)).hex() '0x1.4784addb5643fp-7' float rtne rounds up to 0x1.4784aep-7 Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
Diffstat (limited to 'generated_tests')
-rw-r--r--generated_tests/gen_cl_math_builtins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py
index 7d3c44484..74a97de4a 100644
--- a/generated_tests/gen_cl_math_builtins.py
+++ b/generated_tests/gen_cl_math_builtins.py
@@ -253,7 +253,7 @@ tests = {
'arg_types' : [F, F],
'function_type': 'ttt',
'values' : [
- [1.0, 0.95, 0.009995, 1.994999, 0.0, 0.0, 2.0], # Result
+ [1.0, float.fromhex('0x1.9990c6p-5'), float.fromhex('0x1.4784aep-7'), 1.994999, 0.0, 0.0, 2.0], # Result
[0.0, 1.960/sqrt(2.0), 2.576/sqrt(2.0), -2.807/sqrt(2.0), 11.1, float("inf"), float("-inf")] # Arg0
],
'tolerance' : 16