environment. There are a set of base libraries in the Mde Package that can\r
be used to implement base modules.\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
@return Minimum of two operands.\r
\r
**/\r
-\r
#define MIN(a, b) \\r
(((a) < (b)) ? (a) : (b))\r
\r
+/**\r
+ Return the absolute value of a signed operand.\r
+\r
+ This macro returns the absolute value of the signed operand specified by a.\r
+\r
+ @param a The signed operand.\r
+\r
+ @return The absolute value of the signed operand.\r
+\r
+**/\r
+#define ABS(a) \\r
+ (((a) < 0) ? (-(a)) : (a))\r
+\r
//\r
// Status codes common to all execution phases\r
//\r