]> cvs.zerfleddert.de Git - proxmark3-svn/blob - include/common.h
89a6cd7eaaabe218b038d004e2bb8de665f96440
[proxmark3-svn] / include / common.h
1 //-----------------------------------------------------------------------------
2 // Hagen Fritsch - June 2010
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7
8 //-----------------------------------------------------------------------------
9 // Interlib Definitions
10 //-----------------------------------------------------------------------------
11
12 #ifndef COMMON_H__
13 #define COMMON_H__
14
15 typedef unsigned char byte_t;
16
17 #ifndef MIN
18 # define MIN(a, b) (((a) < (b)) ? (a) : (b))
19 #endif
20 #ifndef MAX
21 # define MAX(a, b) (((a) > (b)) ? (a) : (b))
22 #endif
23 #ifndef ABS
24 # define ABS(a) (((a) < 0) ? -(a) : (a))
25 #endif
26
27 #define RAMFUNC __attribute((long_call, section(".ramfunc")))
28
29 #endif
Impressum, Datenschutz