mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
43 lines
610 B
C
43 lines
610 B
C
/**
|
|
* @file math_base.h
|
|
*
|
|
*/
|
|
|
|
#ifndef LV_MATH_H
|
|
#define LV_MATH_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/*********************
|
|
* INCLUDES
|
|
*********************/
|
|
|
|
/*********************
|
|
* DEFINES
|
|
*********************/
|
|
|
|
#define LV_MATH_MIN(a,b) (a<b?a:b)
|
|
#define LV_MATH_MAX(a,b) (a>b?a:b)
|
|
#define LV_MATH_ABS(x) ((x)>0?(x):(-(x)))
|
|
|
|
/**********************
|
|
* TYPEDEFS
|
|
**********************/
|
|
|
|
/**********************
|
|
* GLOBAL PROTOTYPES
|
|
**********************/
|
|
|
|
/**********************
|
|
* MACROS
|
|
**********************/
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|