You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I suspect there is a bug in the above code. In line 123, there seems to be a missing parenthesis of ((y>>i)^d) -d;. They should be a whole like line 125.
Hi, I have a question about CORDIC algorithm in liquid-fpm. According to wiki, the basic operations in rotation in CORDIC are showed below:
where d[i] is either 1 or -1. I note that in liquid-fpm, we use XOR operation to deal with the judgment of positive and negative signs.
liquid-fpm/src/sincos.cordic.c
Lines 119 to 128 in a8ff545
But I suspect there is a bug in the above code. In line 123, there seems to be a missing parenthesis of
((y>>i)^d) -d;
. They should be a whole like line 125.liquid-fpm/src/sincos.cordic.c
Line 125 in a8ff545
Is there a trick here that I don't know about or is this a simple clerical error? Looking forward to your reply.
The text was updated successfully, but these errors were encountered: