Lines Matching +full:address +full:- +full:aligned
9 Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
10 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
11 SPDX-License-Identifier: BSD-2-Clause-Patent
136 // Static Analyzers may issue errors about potential NULL-dereferences when
138 // NULL-check. This may lead to false positives, such as when using ASSERT()
211 /// Unless otherwise specified, aligned on a 64 bit boundary.
221 /// 4-byte buffer. An IPv4 internet protocol address.
228 /// 16-byte buffer. An IPv6 internet protocol address.
235 // 8-bytes unsigned value that represents a physical system address.
257 /// Datum is read-only.
342 #define MIN_INT8 (((INT8) -127) - 1)
343 #define MIN_INT16 (((INT16) -32767) - 1)
344 #define MIN_INT32 (((INT32) -2147483647) - 1)
345 #define MIN_INT64 (((INT64) -9223372036854775807LL) - 1)
528 // VA_LIST - typedef for argument list.
529 // VA_START (VA_LIST Marker, argument before the ...) - Init Marker for use.
530 // VA_END (VA_LIST Marker) - Clear Marker
531 // VA_ARG (VA_LIST Marker, var arg type) - Use Marker to get an argument from
535 // VA_COPY (VA_LIST Dest, VA_LIST Start) - Initialize Dest as a copy of Start.
566 // - Functions that call VA_START() / VA_END() must have a variable
568 // - Functions that call VA_COPY() / VA_END() must be declared EFIAPI.
569 // - Functions that only use VA_LIST and VA_ARG() need not be EFIAPI.
573 Return the size of argument that has been aligned to sizeof (UINTN).
575 @param n The parameter size to be aligned.
577 @return The aligned size.
579 #define _INT_SIZE_OF(n) ((sizeof (n) + sizeof (UINTN) - 1) &~(sizeof (UINTN) - 1))
589 …) (*(TYPE *) ((Marker += _INT_SIZE_OF (TYPE) + ((-(INTN)Marker) & (sizeof(TYPE) - 1))) - _…
597 // X64 only. Use MS ABI version of GCC built-in macros for variable argument lists.
619 // Use GCC built-in macros for variable argument lists.
651 pointer to the next argument in the argument list is CPU-specific following the
670 pointer to the next argument in the argument list is CPU-specific following the EFIAPI ABI.
679 #define VA_ARG(Marker, TYPE) (*(TYPE *) ((Marker += _INT_SIZE_OF (TYPE)) - _INT_SIZE_OF (TYPE)))
720 #define _BASE_INT_SIZE_OF(TYPE) ((sizeof (TYPE) + sizeof (UINTN) - 1) / sizeof (UINTN))
738 #define BASE_ARG(Marker, TYPE) (*(TYPE *) ((Marker += _BASE_INT_SIZE_OF (TYPE)) - _BASE_INT_SIZE_O…
758 #define OFFSET_OF(TYPE, Field) ((UINTN) &(((TYPE *)0)->Field))
898 #define BASE_CR(Record, TYPE, Field) ((TYPE *) (VOID *) ((CHAR8 *) (Record) - OFFSET_OF (TYPE, Fie…
908 #define IS_POW2(Value) ((Value) != 0U && ((Value) & ((Value) - 1U)) == 0U)
911 Checks whether a value is aligned by a specified alignment.
916 @retval TRUE Value is aligned by Alignment.
917 @retval FALSE Value is not aligned by Alignment.
919 #define IS_ALIGNED(Value, Alignment) (((Value) & ((Alignment) - 1U)) == 0U)
922 Checks whether a pointer or address is aligned by a specified alignment.
924 @param Address The pointer or address to check.
927 @retval TRUE Address is aligned by Alignment.
928 @retval FALSE Address is not aligned by Alignment.
930 #define ADDRESS_IS_ALIGNED(Address, Alignment) IS_ALIGNED ((UINTN) (Address), Alignment) argument
941 #define ALIGN_VALUE_ADDEND(Value, Alignment) (((Alignment) - (Value)) & ((Alignment) - 1U))
947 This aligned value is returned.
950 @param Alignment The alignment boundary used to return the aligned value.
958 Adjust a pointer by adding the minimum offset required for it to be aligned on
962 specified by Alignment. The pointer to the aligned address is returned.
965 @param Alignment The alignment boundary to use to return an aligned pointer.
967 @return Pointer to the aligned address.
974 This is 4-bytes for 32-bit CPUs and 8-bytes for 64-bit CPUs.
1028 (((a) < 0) ? (-(a)) : (a))
1240 /// There is an address conflict address allocation.
1279 /// The resulting buffer contains UEFI-compliant file system.
1289 Returns a 16-bit signature built from 2 ASCII characters.
1291 This macro returns a 16-bit value built from the two ASCII characters specified
1297 @return A 16-bit value built from the two ASCII characters specified by A and B.
1303 Returns a 32-bit signature built from 4 ASCII characters.
1305 This macro returns a 32-bit value built from the four ASCII characters specified
1313 @return A 32-bit value built from the two ASCII characters specified by A, B,
1320 Returns a 64-bit signature built from 8 ASCII characters.
1322 This macro returns a 64-bit value built from the eight ASCII characters specified
1334 @return A 64-bit value built from the two ASCII characters specified by A, B,
1350 Get the return address of the calling function.
1352 Based on intrinsic function _ReturnAddress that provides the address of
1358 @return The return address of the calling function or 0 if L != 0.
1365 Get the return address of the calling function.
1367 Based on built-in Function __builtin_return_address that returns
1368 the return address of the current function, or of one of its callers.
1372 @return The return address of the calling function.
1379 Get the return address of the calling function.