Lines Matching refs:x
109 LV_ATTRIBUTE_FAST_MEM void lv_sqrt(uint32_t x, lv_sqrt_res_t * q, uint32_t mask) in lv_sqrt() argument
111 x = x << 8; /*To get 4 bit precision. (sqrt(256) = 16 = 4 bit)*/ in lv_sqrt()
118 if(trial * trial <= x) root = trial; in lv_sqrt()
132 uint16_t lv_atan2(int x, int y) in lv_atan2() argument
153 if(x < 0) { in lv_atan2()
155 x = (0 - x); // is now + in lv_atan2()
157 ux = x; // copy to unsigned var before multiply in lv_atan2()
236 int32_t lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min_out, int32_t max_out) in lv_map() argument
238 if(max_in >= min_in && x >= max_in) return max_out; in lv_map()
239 if(max_in >= min_in && x <= min_in) return min_out; in lv_map()
241 if(max_in <= min_in && x <= max_in) return max_out; in lv_map()
242 if(max_in <= min_in && x >= min_in) return min_out; in lv_map()
254 return ((x - min_in) * delta_out) / delta_in + min_out; in lv_map()
262 uint32_t x = a; in lv_rand() local
263 x ^= x << 13; in lv_rand()
264 x ^= x >> 17; in lv_rand()
265 x ^= x << 5; in lv_rand()
266 a = x; in lv_rand()