Rotating by shifts
You will learn
How CORDIC rotation mode reaches cos and sin with nothing but shifts and adds.
Turn a vector by atan(2^-i), one way or the other, at step i: the multiply by tan is a shift by i, so each step is two shifts and two adds. Steering by the sign of the angle left drives that angle to zero, and starting at K(n) instead of 1 cancels the stretch each step adds; K(n) tends to 0.6072529350. After 16 steps, 30 degrees comes out as cos 0.866018 and sin 0.500013. The spec cordic.t27 computes every step the widget draws.