summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Ebc/ProcessorBind.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Include/Ebc/ProcessorBind.h')
-rw-r--r--MdePkg/Include/Ebc/ProcessorBind.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/MdePkg/Include/Ebc/ProcessorBind.h b/MdePkg/Include/Ebc/ProcessorBind.h
index cef769241b..5a6e7dc9bb 100644
--- a/MdePkg/Include/Ebc/ProcessorBind.h
+++ b/MdePkg/Include/Ebc/ProcessorBind.h
@@ -54,15 +54,13 @@ typedef unsigned long UINTN;
//
// Scalable macro to set the most significant bit in a natural number
//
-#define MAX_BIT 0x8000000000000000ULL
-#define MAX_2_BITS 0xC000000000000000ULL
-
+#define MAX_BIT (1ULL << (sizeof (INTN) * 8 - 1))
+#define MAX_2_BITS (3ULL << (sizeof (INTN) * 8 - 2))
//
// Maximum legal EBC address
//
-#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL
-
+#define MAX_ADDRESS ((UINTN) ~0)
//
// Modifier to ensure that all protocol member functions and EFI intrinsics
// use the correct C calling convention. All protocol member functions and