X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/902cb3c00b49535f0de9a3b6d5ba0c54260ccac1..c3c12b5571d3654adaf1edf02eda9b2ff57647cc:/include/common.h diff --git a/include/common.h b/include/common.h index 13daa86e..2a67bd87 100644 --- a/include/common.h +++ b/include/common.h @@ -18,4 +18,16 @@ #include typedef unsigned char byte_t; +#ifndef MIN +# define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef MAX +# define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +#ifndef ABS +# define ABS(a) ( ((a)<0) ? -(a) : (a) ) +#endif +#define RAMFUNC __attribute((long_call, section(".ramfunc"))) #endif