From 72d50eec450f6101fdd2593b875b55712776df7c Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 9 Jan 2009 06:27:53 +0000 Subject: [PATCH] Move common definitions (GET_PAD_SIZE and HEADER_ALIGN macro) into MdeModulePackage Include VariableFormat.h git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7229 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/VariablePei/Variable.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.h b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.h index cc5e603607..73cb491ddc 100644 --- a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.h +++ b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.h @@ -25,17 +25,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include -// -// Define GET_PAD_SIZE to optimize compiler -// -#if ((ALIGNMENT == 0) || (ALIGNMENT == 1)) -#define GET_PAD_SIZE(a) (0) -#else -#define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1)) -#endif - -#define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1))) - typedef struct { VARIABLE_HEADER *CurrPtr; VARIABLE_HEADER *EndPtr; @@ -55,7 +44,6 @@ typedef struct { UINT16 Index[VARIABLE_INDEX_TABLE_VOLUME]; } VARIABLE_INDEX_TABLE; - // // Functions //