]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/CommonLib: add definition of MAX_UINT32
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 5 Dec 2018 07:56:58 +0000 (08:56 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 5 Dec 2018 08:04:54 +0000 (09:04 +0100)
Since we will be dropping the definition of MAX_UINTN, whose meaning
is ambiguous for the BaseTools, add a definition of MAX_UINT32 that
we can switch to.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/Common/CommonLib.h

index fa10fac4682a902ccc32e22673403d26335f0c5f..adec0edd6050d4f56e3c777bc67a1330a5f820fd 100644 (file)
@@ -24,6 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #define MAX_UINTN MAX_ADDRESS\r
 #define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL)\r
+#define MAX_UINT32 ((UINT32)0xFFFFFFFF)\r
 #define MAX_UINT16  ((UINT16)0xFFFF)\r
 #define MAX_UINT8   ((UINT8)0xFF)\r
 #define ARRAY_SIZE(Array) (sizeof (Array) / sizeof ((Array)[0]))\r