[Add] Another define: FABS.

This commit is contained in:
Allanis 2013-08-07 12:10:11 +01:00
parent 17fba238d1
commit 4dbc934722

View File

@ -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))