Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a1d37de3 authored by Alexei Sibidanov's avatar Alexei Sibidanov
Browse files

fix the fail found by Paul

parent e9cd42f3
Branches
No related tags found
1 merge request!18first version of atan2pif function. it is a slight modification of atan2f.
Pipeline #716893 passed
......@@ -114,7 +114,7 @@ float cr_atan2pif(float y, float x){
double r = cn0/cd0;
r = z*r + off[i];
b64u64_u res = {.f = r};
if(__builtin_expect(((res.u + 8)&0xfffffff) <= 16, 0)){
if(__builtin_expect(res.u > 0x36a0000000000000 && ((res.u + 8)&0xfffffff) <= 16, 0)){
if(ax==ay) {
static const double off2[] = {0.25f, 0.75f, -0.25f, -0.75f};
r = off2[(uy>>31)*2 + (ux>>31)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment