Skip to content

Commit

Permalink
no message (#267)
Browse files Browse the repository at this point in the history
This patch fixes a problem where the error exceeds the specification on very rare occasion with the deterministic version of 3.5-ULP tan.
  • Loading branch information
shibatch authored Sep 27, 2019
1 parent 7f523de commit f743ace
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libm-tester/hash_cinz.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sin u35 bc50dfbcbd8ef534541d1babe90860c7
sin u10 dbc2cf81f292ef50fa0119e222c6c9f9
cos u35 506e34a809b80ad3603ed46ba2a574b0
cos u10 a0f69df5937152b8f8f0e671f3676289
tan u35 cfb4aacb5f14e68c3171246838ba8f57
tan u35 970b5cd7f0e05defa22ebb155ab61a40
tan u10 5fd08e0552e3ab853439bf5fd2bd344d
sincos u10 7c164edcaa45988f6165b653fc76c495
sincos u35 38fe7e261e184ed8dbf432ce6bedc5c4
Expand Down
2 changes: 1 addition & 1 deletion src/libm-tester/hash_finz.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sin u35 c163e4a7e9ccebb2181dcc8653367d8c
sin u10 0d6bf6f2c935db82588222da95659019
cos u35 52f902bd939d751b5b544ac70181fcff
cos u10 afcdba92a75a76d56b8cf2f22d4bec9e
tan u35 4651b9aa79fab36a07e3d4d6ef250d2f
tan u35 906cc42b6755fe514c5e185fcb4d2f55
tan u10 c98f29a62067fa63646d9bcc29a310c6
sincos u10 3fe37f4eb805505152f2b14a22a9f94e
sincos u35 95a7b7f48c71febf10ec6eff796dd391
Expand Down
2 changes: 1 addition & 1 deletion src/libm/sleefsimddp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ EXPORT CONST VECTOR_CC vdouble xtan(vdouble d) {

ql = vsel_vi_vo_vi_vi(vcast_vo32_vo64(g), ql, vrint_vi_vd(dql));
s = vsel_vd_vo_vd_vd(g, s, u);
g = vlt_vo_vd_vd(vabs_vd_vd(d), vcast_vd_d(1e+7));
g = vlt_vo_vd_vd(vabs_vd_vd(d), vcast_vd_d(1e+6));

if (!LIKELY(vtestallones_i_vo64(g))) {
ddi_t ddi = rempi(d);
Expand Down

0 comments on commit f743ace

Please sign in to comment.