X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/759c16b31f8dcec37458dd6a5973ce0cfce58015..32da0a464e03b39f894ecfe04cee0da114ff0c9a:/include/common.h?ds=sidebyside diff --git a/include/common.h b/include/common.h index 71787b4f..2a67bd87 100644 --- a/include/common.h +++ b/include/common.h @@ -21,8 +21,13 @@ 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