Lines Matching refs:degrees
48 static inline s32 __fixp_sin32(int degrees) in __fixp_sin32() argument
53 if (degrees > 180) { in __fixp_sin32()
55 degrees -= 180; in __fixp_sin32()
57 if (degrees > 90) in __fixp_sin32()
58 degrees = 180 - degrees; in __fixp_sin32()
60 ret = sin_table[degrees]; in __fixp_sin32()
72 static inline s32 fixp_sin32(int degrees) in fixp_sin32() argument
74 degrees = (degrees % 360 + 360) % 360; in fixp_sin32()
76 return __fixp_sin32(degrees); in fixp_sin32()
114 int degrees; in fixp_sin32_rad() local
123 degrees = (radians * 360) / twopi; in fixp_sin32_rad()
124 tmp = radians - (degrees * twopi) / 360; in fixp_sin32_rad()
126 degrees = (degrees % 360 + 360) % 360; in fixp_sin32_rad()
127 v1 = __fixp_sin32(degrees); in fixp_sin32_rad()
129 v2 = fixp_sin32(degrees + 1); in fixp_sin32_rad()