/* Pseudorotations, with right shifts */
for (i = 1, b = 1; i < SW_FT_TRIG_MAX_ITERS; b <<= 1, i++) {
+ SW_FT_Fixed v1 = ((y + b) >> i);
+ SW_FT_Fixed v2 = ((x + b) >> i);
if (theta < 0) {
- xtemp = x + ((y + b) >> i);
- y = y - ((x + b) >> i);
+ xtemp = x + v1;
+ y = y - v2;
x = xtemp;
theta += *arctanptr++;
} else {
- xtemp = x - ((y + b) >> i);
- y = y + ((x + b) >> i);
+ xtemp = x - v1;
+ y = y + v2;
x = xtemp;
theta -= *arctanptr++;
}
/* Pseudorotations, with right shifts */
for (i = 1, b = 1; i < SW_FT_TRIG_MAX_ITERS; b <<= 1, i++) {
+ SW_FT_Fixed v1 = ((y + b) >> i);
+ SW_FT_Fixed v2 = ((x + b) >> i);
if (y > 0) {
- xtemp = x + ((y + b) >> i);
- y = y - ((x + b) >> i);
+ xtemp = x + v1;
+ y = y - v2;
x = xtemp;
theta += *arctanptr++;
} else {
- xtemp = x - ((y + b) >> i);
- y = y + ((x + b) >> i);
+ xtemp = x - v1;
+ y = y + v2;
x = xtemp;
theta -= *arctanptr++;
}