]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/X64/ProcessorBind.h
1. Add defines for MAX values for UEFI data types.
[mirror_edk2.git] / MdePkg / Include / X64 / ProcessorBind.h
index b22d654ae6315b64c0c068c4dc58a3a011e98066..df324340d1932b8ce87ce750ab3ae145e7783ded 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Processor or Compiler specific defines and types x64 (Intel 64, AMD64).\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation<BR>                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 2013, Intel Corporation. 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
   which accompanies this distribution.  The full text of the license may be found at        \r
   http://opensource.org/licenses/bsd-license.php                                            \r
   ///\r
   /// 1-byte signed value\r
   ///\r
-  typedef char                INT8;\r
+  typedef signed char         INT8;\r
 #else\r
   ///\r
   /// 8-byte unsigned value\r
   ///\r
   /// 1-byte signed value\r
   ///\r
-  typedef char                INT8;\r
+  typedef signed char         INT8;\r
 #endif\r
 \r
 ///\r
@@ -227,6 +227,12 @@ typedef INT64   INTN;
 ///\r
 #define MAX_ADDRESS   0xFFFFFFFFFFFFFFFFULL\r
 \r
+///\r
+/// Maximum legal x64 INTN and UINTN values.\r
+///\r
+#define MAX_INTN   ((INTN)0x7FFFFFFFFFFFFFFFULL)\r
+#define MAX_UINTN  ((UINTN)0xFFFFFFFFFFFFFFFFULL)\r
+\r
 ///\r
 /// The stack alignment required for x64\r
 ///\r