aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Symes <dominic.symes@arm.com>2024-03-21 15:44:26 +0000
committerDominic Symes <dominic.symes@arm.com>2024-04-05 14:24:37 +0100
commit4f95cd883bd8ec12f6f4c0450425080049a0e463 (patch)
treec9bc16dbffa49e520a5b9efd2aec394d8834e43a
parent770b18e3d2f36f520b824c70a063381156511bb7 (diff)
downloadspecification-4f95cd883bd8ec12f6f4c0450425080049a0e463.tar.gz
Main Conformance: Update SIN,COS error bounds
Large input values to SIN or COS can lead to proportionately large errors in the angle and so in the SIN or COS result. Change-Id: Ibc0d8f4f1db27b8c8855c48a238040442c14ef71 Signed-off-by: Dominic Symes <dominic.symes@arm.com>
-rw-r--r--chapters/introduction.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/introduction.adoc b/chapters/introduction.adoc
index c6764d3..b8f1730 100644
--- a/chapters/introduction.adoc
+++ b/chapters/introduction.adoc
@@ -321,13 +321,13 @@ Then `tosa_reference_check_fp_bnd<in_out_t>(out_imp, out_ref, err_bnd)` must be
| <<COS>>
| Let `x` be an input element and `out_imp` the implementation output of `cos(x)`. +
Let `out_ref` be the result of the fp64_t reference implementation of `cos(x)`. +
-Let `err_bnd = abs(out_ref) * exp2(-normal_frac<in_out_t>/2)` +
+Let `err_bnd = abs(x) * exp2(-normal_frac<in_out_t>/2)` +
Then `tosa_reference_check_fp_bnd<in_out_t>(out_imp, out_ref, err_bnd)` must be true
| <<SIN>>
| Let `x` be an input element and `out_imp` the implementation output of `sin(x)`. +
Let `out_ref` be the result of the fp64_t reference implementation of `sin(x)`. +
-Let `err_bnd = abs(out_ref) * exp2(-normal_frac<in_out_t>/2)` +
+Let `err_bnd = abs(x) * exp2(-normal_frac<in_out_t>/2)` +
Then `tosa_reference_check_fp_bnd<in_out_t>(out_imp, out_ref, err_bnd)` must be true
| <<RESIZE>>