22#define LV_TRIGO_SIN_MAX 32767
23#define LV_TRIGO_SHIFT 15
25#define LV_BEZIER_VAL_MAX 1024
26#define LV_BEZIER_VAL_SHIFT 10
47LV_ATTRIBUTE_FAST_MEM int16_t lv_trigo_sin(int16_t angle);
49static inline LV_ATTRIBUTE_FAST_MEM int16_t lv_trigo_cos(int16_t angle)
51 return lv_trigo_sin(angle + 90);
65uint32_t
lv_bezier3(uint32_t t, uint32_t u0, uint32_t u1, uint32_t u2, uint32_t u3);
87LV_ATTRIBUTE_FAST_MEM
void lv_sqrt(uint32_t x,
lv_sqrt_res_t * q, uint32_t mask);
97int64_t
lv_pow(int64_t base, int8_t exp);
108int32_t
lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min_out, int32_t max_out);
121#define LV_MIN(a, b) ((a) < (b) ? (a) : (b))
122#define LV_MIN3(a, b, c) (LV_MIN(LV_MIN(a,b), c))
123#define LV_MIN4(a, b, c, d) (LV_MIN(LV_MIN(a,b), LV_MIN(c,d)))
125#define LV_MAX(a, b) ((a) > (b) ? (a) : (b))
126#define LV_MAX3(a, b, c) (LV_MAX(LV_MAX(a,b), c))
127#define LV_MAX4(a, b, c, d) (LV_MAX(LV_MAX(a,b), LV_MAX(c,d)))
129#define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max))))
131#define LV_ABS(x) ((x) > 0 ? (x) : (-(x)))
132#define LV_UDIV255(x) (((x) * 0x8081U) >> 0x17)
134#define LV_IS_SIGNED(t) (((t)(-1)) < ((t)0))
135#define LV_UMAX_OF(t) (((0x1ULL << ((sizeof(t) * 8ULL) - 1ULL)) - 1ULL) | (0xFULL << ((sizeof(t) * 8ULL) - 4ULL)))
136#define LV_SMAX_OF(t) (((0x1ULL << ((sizeof(t) * 8ULL) - 1ULL)) - 1ULL) | (0x7ULL << ((sizeof(t) * 8ULL) - 4ULL)))
137#define LV_MAX_OF(t) ((unsigned long)(LV_IS_SIGNED(t) ? LV_SMAX_OF(t) : LV_UMAX_OF(t)))
uint32_t lv_bezier3(uint32_t t, uint32_t u0, uint32_t u1, uint32_t u2, uint32_t u3)
int32_t lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min_out, int32_t max_out)
uint16_t lv_atan2(int x, int y)
uint32_t lv_rand(uint32_t min, uint32_t max)
int64_t lv_pow(int64_t base, int8_t exp)