[Add] Another define: FABS.
This commit is contained in:
parent
17fba238d1
commit
4dbc934722
@ -5,7 +5,8 @@
|
|||||||
#define MALLOC_L(type)(malloc(sizeof(type)))
|
#define MALLOC_L(type)(malloc(sizeof(type)))
|
||||||
#define CALLOC_L(type)(calloc(1, sizeof(type)))
|
#define CALLOC_L(type)(calloc(1, sizeof(type)))
|
||||||
|
|
||||||
#define ABS(x) (((x)<0)?-(x):(x))
|
#define ABS(x) (((x)<0)?-(x):(x))
|
||||||
|
#define FABS(x) (((x)<0.)?-(x):(x))
|
||||||
|
|
||||||
#define MAX(x,y) (((x)>(y))?(x):(y))
|
#define MAX(x,y) (((x)>(y))?(x):(y))
|
||||||
#define MIN(x,y) (((x)>(y))?(y):(x))
|
#define MIN(x,y) (((x)>(y))?(y):(x))
|
||||||
|
Loading…
Reference in New Issue
Block a user