Searched refs:theta (Results 1 – 1 of 1) sorted by relevance
55 struct cordic_iq cordic_calc_iq(s32 theta) in cordic_calc_iq() argument67 theta = FIXED(theta); in cordic_calc_iq()68 signtheta = (theta < 0) ? -1 : 1; in cordic_calc_iq()69 theta = ((theta + FIXED(180) * signtheta) % FIXED(360)) - in cordic_calc_iq()72 if (FLOAT(theta) > 90) { in cordic_calc_iq()73 theta -= FIXED(180); in cordic_calc_iq()75 } else if (FLOAT(theta) < -90) { in cordic_calc_iq()76 theta += FIXED(180); in cordic_calc_iq()81 if (theta > angle) { in cordic_calc_iq()