mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
47 lines
677 B
C
47 lines
677 B
C
/**
|
|
* @file math_base.h
|
|
*
|
|
*/
|
|
|
|
#ifndef MATH_BASE_H
|
|
#define MATH_BASE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/*********************
|
|
* INCLUDES
|
|
*********************/
|
|
#include "misc_conf.h"
|
|
#if USE_MATH_BASE != 0
|
|
|
|
/*********************
|
|
* DEFINES
|
|
*********************/
|
|
|
|
#define MATH_MIN(a,b) (a<b?a:b)
|
|
#define MATH_MAX(a,b) (a>b?a:b)
|
|
#define MATH_ABS(x) ((x)>0?(x):(-(x)))
|
|
|
|
/**********************
|
|
* TYPEDEFS
|
|
**********************/
|
|
|
|
/**********************
|
|
* GLOBAL PROTOTYPES
|
|
**********************/
|
|
|
|
/**********************
|
|
* MACROS
|
|
**********************/
|
|
|
|
#endif /*USE_MATH_BASE*/
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|