TianoCore EDK2 master
Loading...
Searching...
No Matches
BaseLibInternals.h File Reference
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>

Go to the source code of this file.

Functions

UINT64 EFIAPI InternalMathLShiftU64 (IN UINT64 Operand, IN UINTN Count)
 
UINT64 EFIAPI InternalMathRShiftU64 (IN UINT64 Operand, IN UINTN Count)
 
UINT64 EFIAPI InternalMathARShiftU64 (IN UINT64 Operand, IN UINTN Count)
 
UINT64 EFIAPI InternalMathLRotU64 (IN UINT64 Operand, IN UINTN Count)
 
UINT64 EFIAPI InternalMathRRotU64 (IN UINT64 Operand, IN UINTN Count)
 
UINT64 EFIAPI InternalMathSwapBytes64 (IN UINT64 Operand)
 
UINT64 EFIAPI InternalMathMultU64x32 (IN UINT64 Multiplicand, IN UINT32 Multiplier)
 
UINT64 EFIAPI InternalMathMultU64x64 (IN UINT64 Multiplicand, IN UINT64 Multiplier)
 
UINT64 EFIAPI InternalMathDivU64x32 (IN UINT64 Dividend, IN UINT32 Divisor)
 
UINT32 EFIAPI InternalMathModU64x32 (IN UINT64 Dividend, IN UINT32 Divisor)
 
UINT64 EFIAPI InternalMathDivRemU64x32 (IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL)
 
UINT64 EFIAPI InternalMathDivRemU64x64 (IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL)
 
INT64 EFIAPI InternalMathDivRemS64x64 (IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL)
 
VOID EFIAPI InternalSwitchStack (IN SWITCH_STACK_ENTRY_POINT EntryPoint, IN VOID *Context1 OPTIONAL, IN VOID *Context2 OPTIONAL, IN VOID *NewStack, IN VA_LIST Marker)
 
UINTN EFIAPI BitFieldReadUint (IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit)
 
UINTN EFIAPI BitFieldOrUint (IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINTN OrData)
 
UINTN EFIAPI BitFieldAndUint (IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINTN AndData)
 
VOID EFIAPI InternalAssertJumpBuffer (IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer)
 
VOID EFIAPI InternalLongJump (IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer, IN UINTN Value)
 
BOOLEAN EFIAPI InternalIsDecimalDigitCharacter (IN CHAR16 Char)
 
UINTN EFIAPI InternalHexCharToUintn (IN CHAR16 Char)
 
BOOLEAN EFIAPI InternalIsHexaDecimalDigitCharacter (IN CHAR16 Char)
 
BOOLEAN EFIAPI InternalAsciiIsDecimalDigitCharacter (IN CHAR8 Char)
 
BOOLEAN EFIAPI InternalAsciiIsHexaDecimalDigitCharacter (IN CHAR8 Char)
 
UINTN EFIAPI InternalAsciiHexCharToUintn (IN CHAR8 Char)
 

Detailed Description

Declaration of internal functions in BaseLib.

Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BaseLibInternals.h.

Function Documentation

◆ BitFieldAndUint()

UINTN EFIAPI BitFieldAndUint ( IN UINTN  Operand,
IN UINTN  StartBit,
IN UINTN  EndBit,
IN UINTN  AndData 
)

Worker function that reads a bit field from Operand, performs a bitwise AND, and returns the result.

Performs a bitwise AND between the bit field specified by StartBit and EndBit in Operand and the value specified by AndData. All other bits in Operand are preserved. The new value is returned.

Parameters
OperandOperand on which to perform the bitfield operation.
StartBitThe ordinal of the least significant bit in the bit field.
EndBitThe ordinal of the most significant bit in the bit field.
AndDataThe value to And with the read value from the value
Returns
The new value.

◆ BitFieldOrUint()

UINTN EFIAPI BitFieldOrUint ( IN UINTN  Operand,
IN UINTN  StartBit,
IN UINTN  EndBit,
IN UINTN  OrData 
)

Worker function that reads a bit field from Operand, performs a bitwise OR, and returns the result.

Performs a bitwise OR between the bit field specified by StartBit and EndBit in Operand and the value specified by AndData. All other bits in Operand are preserved. The new value is returned.

Parameters
OperandOperand on which to perform the bitfield operation.
StartBitThe ordinal of the least significant bit in the bit field.
EndBitThe ordinal of the most significant bit in the bit field.
OrDataThe value to OR with the read value from the value
Returns
The new value.

◆ BitFieldReadUint()

UINTN EFIAPI BitFieldReadUint ( IN UINTN  Operand,
IN UINTN  StartBit,
IN UINTN  EndBit 
)

Worker function that returns a bit field from Operand.

Returns the bitfield specified by the StartBit and the EndBit from Operand.

Parameters
OperandOperand on which to perform the bitfield operation.
StartBitThe ordinal of the least significant bit in the bit field.
EndBitThe ordinal of the most significant bit in the bit field.
Returns
The bit field read.

◆ InternalAsciiHexCharToUintn()

UINTN EFIAPI InternalAsciiHexCharToUintn ( IN CHAR8  Char)

Convert a ASCII character to numerical value.

This internal function only deal with Unicode character which maps to a valid hexadecimal ASII character, i.e. '0' to '9', 'a' to 'f' or 'A' to 'F'. For other ASCII character, the value returned does not make sense.

Parameters
CharThe character to convert.
Returns
The numerical value converted.

Definition at line 772 of file String.c.

◆ InternalAsciiIsDecimalDigitCharacter()

BOOLEAN EFIAPI InternalAsciiIsDecimalDigitCharacter ( IN CHAR8  Char)

Check if a ASCII character is a decimal character.

This internal function checks if a Unicode character is a decimal character. The valid decimal character is from '0' to '9'.

Parameters
CharThe character to check against.
Return values
TRUEIf the Char is a decmial character.
FALSEIf the Char is not a decmial character.

Definition at line 590 of file String.c.

◆ InternalAsciiIsHexaDecimalDigitCharacter()

BOOLEAN EFIAPI InternalAsciiIsHexaDecimalDigitCharacter ( IN CHAR8  Char)

Check if a ASCII character is a hexadecimal character.

This internal function checks if a ASCII character is a decimal character. The valid hexadecimal character is L'0' to L'9', L'a' to L'f', or L'A' to L'F'.

Parameters
CharThe character to check against.
Return values
TRUEIf the Char is a hexadecmial character.
FALSEIf the Char is not a hexadecmial character.

Definition at line 613 of file String.c.

◆ InternalAssertJumpBuffer()

VOID EFIAPI InternalAssertJumpBuffer ( IN BASE_LIBRARY_JUMP_BUFFER *  JumpBuffer)

Worker function that checks ASSERT condition for JumpBuffer

Checks ASSERT condition for JumpBuffer.

If JumpBuffer is NULL, then ASSERT(). For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().

Parameters
JumpBufferA pointer to CPU context buffer.

Definition at line 24 of file SetJump.c.

◆ InternalHexCharToUintn()

UINTN EFIAPI InternalHexCharToUintn ( IN CHAR16  Char)

Convert a Unicode character to numerical value.

This internal function only deal with Unicode character which maps to a valid hexadecimal ASII character, i.e. L'0' to L'9', L'a' to L'f' or L'A' to L'F'. For other Unicode character, the value returned does not make sense.

Parameters
CharThe character to convert.
Returns
The numerical value converted.

Definition at line 333 of file String.c.

◆ InternalIsDecimalDigitCharacter()

BOOLEAN EFIAPI InternalIsDecimalDigitCharacter ( IN CHAR16  Char)

Check if a Unicode character is a decimal character.

This internal function checks if a Unicode character is a decimal character. The valid decimal character is from L'0' to L'9'.

Parameters
CharThe character to check against.
Return values
TRUEIf the Char is a decmial character.
FALSEIf the Char is not a decmial character.

Definition at line 283 of file String.c.

◆ InternalIsHexaDecimalDigitCharacter()

BOOLEAN EFIAPI InternalIsHexaDecimalDigitCharacter ( IN CHAR16  Char)

Check if a Unicode character is a hexadecimal character.

This internal function checks if a Unicode character is a decimal character. The valid hexadecimal character is L'0' to L'9', L'a' to L'f', or L'A' to L'F'.

Parameters
CharThe character to check against.
Return values
TRUEIf the Char is a hexadecmial character.
FALSEIf the Char is not a hexadecmial character.

Definition at line 360 of file String.c.

◆ InternalLongJump()

VOID EFIAPI InternalLongJump ( IN BASE_LIBRARY_JUMP_BUFFER *  JumpBuffer,
IN UINTN  Value 
)

Restores the CPU context that was saved with SetJump().

Restores the CPU context from the buffer specified by JumpBuffer. This function never returns to the caller. Instead is resumes execution based on the state of JumpBuffer.

Parameters
JumpBufferA pointer to CPU context buffer.
ValueThe value to return when the SetJump() context is restored.

Restores the CPU context that was saved with SetJump().

Restores the CPU context from the buffer specified by JumpBuffer. This function never returns to the caller. Instead it resumes execution based on the state of JumpBuffer.

Parameters
JumpBufferA pointer to CPU context buffer.
ValueThe value to return when the SetJump() context is restored.

Definition at line 53 of file SetJumpLongJump.c.

◆ InternalMathARShiftU64()

UINT64 EFIAPI InternalMathARShiftU64 ( IN UINT64  Operand,
IN UINTN  Count 
)

Shifts a 64-bit integer right between 0 and 63 bits. The high bits are filled with original integer's bit 63. The shifted value is returned.

This function shifts the 64-bit value Operand to the right by Count bits. The high Count bits are set to bit 63 of Operand. The shifted value is returned.

Parameters
OperandThe 64-bit operand to shift right.
CountThe number of bits to shift right.
Returns
Operand arithmetically shifted right by Count

Shifts a 64-bit integer right between 0 and 63 bits. The high bits are filled with original integer's bit 63. The shifted value is returned.

This function shifts the 64-bit value Operand to the right by Count bits. The high Count bits are set to bit 63 of Operand. The shifted value is returned.

Parameters
OperandThe 64-bit operand to shift right.
CountThe number of bits to shift right.
Returns
Operand arithmetically shifted right by Count.

Definition at line 24 of file ARShiftU64.c.

◆ InternalMathDivRemS64x64()

INT64 EFIAPI InternalMathDivRemS64x64 ( IN INT64  Dividend,
IN INT64  Divisor,
OUT INT64 *Remainder  OPTIONAL 
)

Divides a 64-bit signed integer by a 64-bit signed integer and generates a 64-bit signed result and an optional 64-bit signed remainder.

This function divides the 64-bit signed value Dividend by the 64-bit signed value Divisor and generates a 64-bit signed quotient. If Remainder is not NULL, then the 64-bit signed remainder is returned in Remainder. This function returns the 64-bit signed quotient.

Parameters
DividendA 64-bit signed value.
DivisorA 64-bit signed value.
RemainderA pointer to a 64-bit signed value. This parameter is optional and may be NULL.
Returns
Dividend / Divisor

Worker function that Divides a 64-bit signed integer by a 64-bit signed integer and generates a 64-bit signed result and a optional 64-bit signed remainder.

This function divides the 64-bit signed value Dividend by the 64-bit signed value Divisor and generates a 64-bit signed quotient. If Remainder is not NULL, then the 64-bit signed remainder is returned in Remainder. This function returns the 64-bit signed quotient.

Parameters
DividendA 64-bit signed value.
DivisorA 64-bit signed value.
RemainderA pointer to a 64-bit signed value. This parameter is optional and may be NULL.
Returns
Dividend / Divisor

Divides a 64-bit signed integer by a 64-bit signed integer and generates a 64-bit signed result and an optional 64-bit signed remainder.

This function divides the 64-bit signed value Dividend by the 64-bit signed value Divisor and generates a 64-bit signed quotient. If Remainder is not NULL, then the 64-bit signed remainder is returned in Remainder. This function returns the 64-bit signed quotient.

Parameters
DividendA 64-bit signed value.
DivisorA 64-bit signed value.
RemainderA pointer to a 64-bit signed value. This parameter is optional and may be NULL.
Returns
Dividend / Divisor.

Definition at line 30 of file DivS64x64Remainder.c.

◆ InternalMathDivRemU64x32()

UINT64 EFIAPI InternalMathDivRemU64x32 ( IN UINT64  Dividend,
IN UINT32  Divisor,
OUT UINT32 *Remainder  OPTIONAL 
)

Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 64-bit unsigned result and an optional 32-bit unsigned remainder.

This function divides the 64-bit unsigned value Dividend by the 32-bit unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder is not NULL, then the 32-bit unsigned remainder is returned in Remainder. This function returns the 64-bit unsigned quotient.

Parameters
DividendA 64-bit unsigned value.
DivisorA 32-bit unsigned value.
RemainderA pointer to a 32-bit unsigned value. This parameter is optional and may be NULL.
Returns
Dividend / Divisor

Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 64-bit unsigned result and an optional 32-bit unsigned remainder.

This function divides the 64-bit unsigned value Dividend by the 32-bit unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder is not NULL, then the 32-bit unsigned remainder is returned in Remainder. This function returns the 64-bit unsigned quotient.

Parameters
DividendA 64-bit unsigned value.
DivisorA 32-bit unsigned value.
RemainderA pointer to a 32-bit unsigned value. This parameter is optional and may be NULL.
Returns
Dividend / Divisor.

Definition at line 288 of file Math64.c.

◆ InternalMathDivRemU64x64()

UINT64 EFIAPI InternalMathDivRemU64x64 ( IN UINT64  Dividend,
IN UINT64  Divisor,
OUT UINT64 *Remainder  OPTIONAL 
)

Divides a 64-bit unsigned integer by a 64-bit unsigned integer and generates a 64-bit unsigned result and an optional 64-bit unsigned remainder.

This function divides the 64-bit unsigned value Dividend by the 64-bit unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder is not NULL, then the 64-bit unsigned remainder is returned in Remainder. This function returns the 64-bit unsigned quotient.

Parameters
DividendA 64-bit unsigned value.
DivisorA 64-bit unsigned value.
RemainderA pointer to a 64-bit unsigned value. This parameter is optional and may be NULL.
Returns
Dividend / Divisor

Definition at line 320 of file Math64.c.

◆ InternalMathDivU64x32()

UINT64 EFIAPI InternalMathDivU64x32 ( IN UINT64  Dividend,
IN UINT32  Divisor 
)

Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 64-bit unsigned result.

This function divides the 64-bit unsigned value Dividend by the 32-bit unsigned value Divisor and generates a 64-bit unsigned quotient. This function returns the 64-bit unsigned quotient.

Parameters
DividendA 64-bit unsigned value.
DivisorA 32-bit unsigned value.
Returns
Dividend / Divisor

Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 64-bit unsigned result.

This function divides the 64-bit unsigned value Dividend by the 32-bit unsigned value Divisor and generates a 64-bit unsigned quotient. This function returns the 64-bit unsigned quotient.

Parameters
DividendA 64-bit unsigned value.
DivisorA 32-bit unsigned value.
Returns
Dividend / Divisor.

Definition at line 25 of file DivU64x32.c.

◆ InternalMathLRotU64()

UINT64 EFIAPI InternalMathLRotU64 ( IN UINT64  Operand,
IN UINTN  Count 
)

Rotates a 64-bit integer left between 0 and 63 bits, filling the low bits with the high bits that were rotated.

This function rotates the 64-bit value Operand to the left by Count bits. The low Count bits are filled with the high Count bits of Operand. The rotated value is returned.

Parameters
OperandThe 64-bit operand to rotate left.
CountThe number of bits to rotate left.
Returns
Operand <<< Count

Rotates a 64-bit integer left between 0 and 63 bits, filling the low bits with the high bits that were rotated.

This function rotates the 64-bit value Operand to the left by Count bits. The low Count bits are fill with the high Count bits of Operand. The rotated value is returned.

Parameters
OperandThe 64-bit operand to rotate left.
CountThe number of bits to rotate left.
Returns
Operand <<< Count

Rotates a 64-bit integer left between 0 and 63 bits, filling the low bits with the high bits that were rotated.

This function rotates the 64-bit value Operand to the left by Count bits. The low Count bits are fill with the high Count bits of Operand. The rotated value is returned.

Parameters
OperandThe 64-bit operand to rotate left.
CountThe number of bits to rotate left.
Returns
Operand <<< Count.

Definition at line 25 of file LRotU64.c.

◆ InternalMathLShiftU64()

UINT64 EFIAPI InternalMathLShiftU64 ( IN UINT64  Operand,
IN UINTN  Count 
)

Shifts a 64-bit integer left between 0 and 63 bits. The low bits are filled with zeros. The shifted value is returned.

This function shifts the 64-bit value Operand to the left by Count bits. The low Count bits are set to zero. The shifted value is returned.

Parameters
OperandThe 64-bit operand to shift left.
CountThe number of bits to shift left.
Returns
Operand << Count

Shifts a 64-bit integer left between 0 and 63 bits. The low bits are filled with zeros. The shifted value is returned.

This function shifts the 64-bit value Operand to the left by Count bits. The low Count bits are set to zero. The shifted value is returned.

Parameters
OperandThe 64-bit operand to shift left.
CountThe number of bits to shift left.
Returns
Operand << Count.

Definition at line 24 of file LShiftU64.c.

◆ InternalMathModU64x32()

UINT32 EFIAPI InternalMathModU64x32 ( IN UINT64  Dividend,
IN UINT32  Divisor 
)

Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 32-bit unsigned remainder.

This function divides the 64-bit unsigned value Dividend by the 32-bit unsigned value Divisor and generates a 32-bit remainder. This function returns the 32-bit unsigned remainder.

Parameters
DividendA 64-bit unsigned value.
DivisorA 32-bit unsigned value.
Returns
Dividend % Divisor

Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 32-bit unsigned remainder.

This function divides the 64-bit unsigned value Dividend by the 32-bit unsigned value Divisor and generates a 32-bit remainder. This function returns the 32-bit unsigned remainder.

Parameters
DividendA 64-bit unsigned value.
DivisorA 32-bit unsigned value.
Returns
Dividend % Divisor.

Definition at line 25 of file ModU64x32.c.

◆ InternalMathMultU64x32()

UINT64 EFIAPI InternalMathMultU64x32 ( IN UINT64  Multiplicand,
IN UINT32  Multiplier 
)

Multiplies a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 64-bit unsigned result.

This function multiplies the 64-bit unsigned value Multiplicand by the 32-bit unsigned value Multiplier and generates a 64-bit unsigned result. This 64- bit unsigned result is returned.

Parameters
MultiplicandA 64-bit unsigned value.
MultiplierA 32-bit unsigned value.
Returns
Multiplicand * Multiplier

Multiples a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 64-bit unsigned result.

This function multiples the 64-bit unsigned value Multiplicand by the 32-bit unsigned value Multiplier and generates a 64-bit unsigned result. This 64- bit unsigned result is returned.

Parameters
MultiplicandA 64-bit unsigned value.
MultiplierA 32-bit unsigned value.
Returns
Multiplicand * Multiplier

Definition at line 25 of file MultU64x32.c.

◆ InternalMathMultU64x64()

UINT64 EFIAPI InternalMathMultU64x64 ( IN UINT64  Multiplicand,
IN UINT64  Multiplier 
)

Multiplies a 64-bit unsigned integer by a 64-bit unsigned integer and generates a 64-bit unsigned result.

This function multiples the 64-bit unsigned value Multiplicand by the 64-bit unsigned value Multiplier and generates a 64-bit unsigned result. This 64- bit unsigned result is returned.

Parameters
MultiplicandA 64-bit unsigned value.
MultiplierA 64-bit unsigned value.
Returns
Multiplicand * Multiplier

Multiplies a 64-bit unsigned integer by a 64-bit unsigned integer and generates a 64-bit unsigned result.

This function multiplies the 64-bit unsigned value Multiplicand by the 64-bit unsigned value Multiplier and generates a 64-bit unsigned result. This 64- bit unsigned result is returned.

Parameters
MultiplicandA 64-bit unsigned value.
MultiplierA 64-bit unsigned value.
Returns
Multiplicand * Multiplier

Multiplies a 64-bit unsigned integer by a 64-bit unsigned integer and generates a 64-bit unsigned result.

This function multiplies the 64-bit unsigned value Multiplicand by the 64-bit unsigned value Multiplier and generates a 64-bit unsigned result. This 64- bit unsigned result is returned.

Parameters
MultiplicandA 64-bit unsigned value.
MultiplierA 64-bit unsigned value.
Returns
Multiplicand * Multiplier.

Definition at line 25 of file MultU64x64.c.

◆ InternalMathRRotU64()

UINT64 EFIAPI InternalMathRRotU64 ( IN UINT64  Operand,
IN UINTN  Count 
)

Rotates a 64-bit integer right between 0 and 63 bits, filling the high bits with the high low bits that were rotated.

This function rotates the 64-bit value Operand to the right by Count bits. The high Count bits are filled with the low Count bits of Operand. The rotated value is returned.

Parameters
OperandThe 64-bit operand to rotate right.
CountThe number of bits to rotate right.
Returns
Operand >>> Count

Rotates a 64-bit integer right between 0 and 63 bits, filling the high bits with the high low bits that were rotated.

This function rotates the 64-bit value Operand to the right by Count bits. The high Count bits are fill with the low Count bits of Operand. The rotated value is returned.

Parameters
OperandThe 64-bit operand to rotate right.
CountThe number of bits to rotate right.
Returns
Operand >>> Count

Rotates a 64-bit integer right between 0 and 63 bits, filling the high bits with the high low bits that were rotated.

This function rotates the 64-bit value Operand to the right by Count bits. The high Count bits are fill with the low Count bits of Operand. The rotated value is returned.

Parameters
OperandThe 64-bit operand to rotate right.
CountThe number of bits to rotate right.
Returns
Operand >>> Count.

Definition at line 25 of file RRotU64.c.

◆ InternalMathRShiftU64()

UINT64 EFIAPI InternalMathRShiftU64 ( IN UINT64  Operand,
IN UINTN  Count 
)

Shifts a 64-bit integer right between 0 and 63 bits. The high bits are filled with zeros. The shifted value is returned.

This function shifts the 64-bit value Operand to the right by Count bits. The high Count bits are set to zero. The shifted value is returned.

Parameters
OperandThe 64-bit operand to shift right.
CountThe number of bits to shift right.
Returns
Operand >> Count

Shifts a 64-bit integer right between 0 and 63 bits. This high bits are filled with zeros. The shifted value is returned.

This function shifts the 64-bit value Operand to the right by Count bits. The high Count bits are set to zero. The shifted value is returned.

Parameters
OperandThe 64-bit operand to shift right.
CountThe number of bits to shift right.
Returns
Operand >> Count

Shifts a 64-bit integer right between 0 and 63 bits. This high bits are filled with zeros. The shifted value is returned.

This function shifts the 64-bit value Operand to the right by Count bits. The high Count bits are set to zero. The shifted value is returned.

Parameters
OperandThe 64-bit operand to shift right.
CountThe number of bits to shift right.
Returns
Operand >> Count.

Definition at line 24 of file RShiftU64.c.

◆ InternalMathSwapBytes64()

UINT64 EFIAPI InternalMathSwapBytes64 ( IN UINT64  Operand)

Switches the endianess of a 64-bit integer.

This function swaps the bytes in a 64-bit unsigned value to switch the value from little endian to big endian or vice versa. The byte swapped value is returned.

Parameters
OperandA 64-bit unsigned value.
Returns
The byte swapped Operand.

Switches the endianess of a 64-bit integer.

This function swaps the bytes in a 64-bit unsigned value to switch the value from little endian to big endian or vice versa. The byte swapped value is returned.

Parameters
OperandA 64-bit unsigned value.
Returns
The byte swaped Operand.

Definition at line 23 of file SwapBytes64.c.

◆ InternalSwitchStack()

VOID EFIAPI InternalSwitchStack ( IN SWITCH_STACK_ENTRY_POINT  EntryPoint,
IN VOID *Context1  OPTIONAL,
IN VOID *Context2  OPTIONAL,
IN VOID *  NewStack,
IN VA_LIST  Marker 
)

Transfers control to a function starting with a new stack.

Transfers control to the function specified by EntryPoint using the new stack specified by NewStack and passing in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA-32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.

If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().

Parameters
EntryPointA pointer to function to call with the new stack.
Context1A pointer to the context to pass into the EntryPoint function.
Context2A pointer to the context to pass into the EntryPoint function.
NewStackA pointer to the new stack to use for the EntryPoint function.
MarkerVA_LIST marker for the variable argument list.

Transfers control to a function starting with a new stack.

Transfers control to the function specified by EntryPoint using the new stack specified by NewStack, and passes in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA-32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.

If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().

Parameters
EntryPointA pointer to function to call with the new stack.
Context1A pointer to the context to pass into the EntryPoint function.
Context2A pointer to the context to pass into the EntryPoint function.
NewStackA pointer to the new stack to use for the EntryPoint function.
MarkerA VA_LIST marker for the variable argument list.

Transfers control to a function starting with a new stack.

Transfers control to the function specified by EntryPoint using the new stack specified by NewStack and passing in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA-32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.

If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().

Parameters
EntryPointA pointer to function to call with the new stack.
Context1A pointer to the context to pass into the EntryPoint function.
Context2A pointer to the context to pass into the EntryPoint function.
NewStackA pointer to the new stack to use for the EntryPoint function.
MarkerA VA_LIST marker for the variable argument list.

Transfers control to a function starting with a new stack.

Transfers control to the function specified by EntryPoint using the new stack specified by NewStack and passing in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return.

If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().

Parameters
[in]EntryPointA pointer to function to call with the new stack.
[in]Context1A pointer to the context to pass into the EntryPoint function.
[in]Context2A pointer to the context to pass into the EntryPoint function.
[in]NewStackA pointer to the new stack to use for the EntryPoint function.
[in]MarkerVA_LIST marker for the variable argument list.

Definition at line 62 of file InternalSwitchStack.c.