mirror of https://github.com/acidanthera/audk.git
BaseTools/CommonLib: add definition of MAX_UINT32
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>
This commit is contained in:
parent
6e2d15e3c4
commit
4d393eb876
|
@ -24,6 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
#define MAX_UINTN MAX_ADDRESS
|
#define MAX_UINTN MAX_ADDRESS
|
||||||
#define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL)
|
#define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL)
|
||||||
|
#define MAX_UINT32 ((UINT32)0xFFFFFFFF)
|
||||||
#define MAX_UINT16 ((UINT16)0xFFFF)
|
#define MAX_UINT16 ((UINT16)0xFFFF)
|
||||||
#define MAX_UINT8 ((UINT8)0xFF)
|
#define MAX_UINT8 ((UINT8)0xFF)
|
||||||
#define ARRAY_SIZE(Array) (sizeof (Array) / sizeof ((Array)[0]))
|
#define ARRAY_SIZE(Array) (sizeof (Array) / sizeof ((Array)[0]))
|
||||||
|
|
Loading…
Reference in New Issue