Quote:
Originally Posted by jhersh
|
Thanks for the link Joe.
Using two
fmadds instructions
1, at one cycle each
2, you can get arctangent(x) in the first octant accurate to +/- 0.25 degrees. Pretty tough to beat with a lookup table.
Wrap 3 compares, 1 divide, and 1 more add around that, and you've got atan2(y,x) accurate to +/- 0.25 degrees good for all four quadrants.
1Para 3.2.4.2.2 Table 3-9
2Para 1.1