FreeCalypso > hg > ffs-editor
diff src/cs/layer1/p_include/l1p_macr.h @ 0:92470e5d0b9e
src: partial import from FC Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 15 May 2020 01:28:16 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cs/layer1/p_include/l1p_macr.h Fri May 15 01:28:16 2020 +0000 @@ -0,0 +1,20 @@ +/************* Revision Controle System Header ************* + * GSM Layer 1 software + * + * + * Filename l1p_macr.h + * Copyright 2003 (C) Texas Instruments + * + ************* Revision Controle System Header *************/ + +#if (OP_L1_STANDALONE == 0) + // First undefine the macros to avoid compilation warnings + #undef Min + #undef Max +#endif + +// Max(x,y) definition +#define Max(x,y) ( (x) > (y) ? (x) : (y) ) + +// Min(x,y) definition +#define Min(x,y) ( (x) < (y) ? (x) : (y) )