aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tests
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-06-20 00:59:40 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-06-23 02:06:46 +0200
commitd84677abd8ffb8ca8ad94eced6d9e03928f35d79 (patch)
tree589f3213d4cc50773aec128aa5b5b55f7e523cb4 /libavutil/tests
parentfe167bae969cf2deac2f5c480fc5c5ac5f8e6267 (diff)
downloadffmpeg-d84677abd8ffb8ca8ad94eced6d9e03928f35d79.tar.gz
avutil/softfloat: fix av_sincos_sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/tests')
-rw-r--r--libavutil/tests/softfloat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/tests/softfloat.c b/libavutil/tests/softfloat.c
index c06de44933..a2e628fe81 100644
--- a/libavutil/tests/softfloat.c
+++ b/libavutil/tests/softfloat.c
@@ -148,7 +148,7 @@ int main(void){
av_sincos_sf(i*(1ULL<<32)/36/4, &s, &c);
errs = (double)s/ (1<<30) - sin(i*M_PI/36);
errc = (double)c/ (1<<30) - cos(i*M_PI/36);
- if (fabs(errs) > 0.00000002 || fabs(errc) >0.001) {
+ if (fabs(errs) > 0.000000004 || fabs(errc) >0.000000004) {
printf("sincos FAIL %d %f %f %f %f\n", i, (float)s/ (1<<30), (float)c/ (1<<30), sin(i*M_PI/36), cos(i*M_PI/36));
}