1.Added EFIAPI for some assembly functions declare
2.Modified some functions header git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1052 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c986fd09d7
commit
bda7fbcc2f
@ -22,7 +22,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker functons that shifts a 64-bit integer left between 0 and 63 bits. The low bits
|
Shifts a 64-bit integer left between 0 and 63 bits. The low bits
|
||||||
are filled with zeros. The shifted value is returned.
|
are filled with zeros. The shifted value is returned.
|
||||||
|
|
||||||
This function shifts the 64-bit value Operand to the left by Count bits. The
|
This function shifts the 64-bit value Operand to the left by Count bits. The
|
||||||
@ -42,7 +42,7 @@ InternalMathLShiftU64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker functon that shifts a 64-bit integer right between 0 and 63 bits. This high bits
|
Shifts a 64-bit integer right between 0 and 63 bits. This high bits
|
||||||
are filled with zeros. The shifted value is returned.
|
are filled with zeros. The shifted value is returned.
|
||||||
|
|
||||||
This function shifts the 64-bit value Operand to the right by Count bits. The
|
This function shifts the 64-bit value Operand to the right by Count bits. The
|
||||||
@ -62,7 +62,7 @@ InternalMathRShiftU64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that shifts a 64-bit integer right between 0 and 63 bits. The high bits
|
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.
|
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
|
This function shifts the 64-bit value Operand to the right by Count bits. The
|
||||||
@ -82,7 +82,7 @@ InternalMathARShiftU64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that rotates a 64-bit integer left between 0 and 63 bits, filling
|
Rotates a 64-bit integer left between 0 and 63 bits, filling
|
||||||
the low bits with the high bits that were rotated.
|
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
|
This function rotates the 64-bit value Operand to the left by Count bits. The
|
||||||
@ -103,7 +103,7 @@ InternalMathLRotU64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that rotates a 64-bit integer right between 0 and 63 bits, filling
|
Rotates a 64-bit integer right between 0 and 63 bits, filling
|
||||||
the high bits with the high low bits that were rotated.
|
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.
|
This function rotates the 64-bit value Operand to the right by Count bits.
|
||||||
@ -124,7 +124,7 @@ InternalMathRRotU64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that switches the endianess of a 64-bit integer.
|
Switches the endianess of a 64-bit integer.
|
||||||
|
|
||||||
This function swaps the bytes in a 64-bit unsigned value to switch the value
|
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
|
from little endian to big endian or vice versa. The byte swapped value is
|
||||||
@ -142,7 +142,7 @@ InternalMathSwapBytes64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that multiples a 64-bit unsigned integer by a 32-bit unsigned integer
|
Multiples a 64-bit unsigned integer by a 32-bit unsigned integer
|
||||||
and generates a 64-bit unsigned result.
|
and generates a 64-bit unsigned result.
|
||||||
|
|
||||||
This function multiples the 64-bit unsigned value Multiplicand by the 32-bit
|
This function multiples the 64-bit unsigned value Multiplicand by the 32-bit
|
||||||
@ -163,7 +163,7 @@ InternalMathMultU64x32 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that multiples a 64-bit unsigned integer by a 64-bit unsigned integer
|
Multiples a 64-bit unsigned integer by a 64-bit unsigned integer
|
||||||
and generates a 64-bit unsigned result.
|
and generates a 64-bit unsigned result.
|
||||||
|
|
||||||
This function multiples the 64-bit unsigned value Multiplicand by the 64-bit
|
This function multiples the 64-bit unsigned value Multiplicand by the 64-bit
|
||||||
@ -184,7 +184,7 @@ InternalMathMultU64x64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
Divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
||||||
generates a 64-bit unsigned result.
|
generates a 64-bit unsigned result.
|
||||||
|
|
||||||
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
||||||
@ -205,7 +205,7 @@ InternalMathDivU64x32 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
Divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
||||||
generates a 32-bit unsigned remainder.
|
generates a 32-bit unsigned remainder.
|
||||||
|
|
||||||
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
||||||
@ -226,7 +226,7 @@ InternalMathModU64x32 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
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.
|
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
|
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
||||||
@ -251,7 +251,7 @@ InternalMathDivRemU64x32 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 64-bit unsigned integer and
|
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.
|
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
|
This function divides the 64-bit unsigned value Dividend by the 64-bit
|
||||||
@ -276,7 +276,7 @@ InternalMathDivRemU64x64 (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit signed integer by a 64-bit signed integer and
|
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.
|
generates a 64-bit signed result and a optional 64-bit signed remainder.
|
||||||
|
|
||||||
This function divides the 64-bit unsigned value Dividend by the 64-bit
|
This function divides the 64-bit unsigned value Dividend by the 64-bit
|
||||||
@ -317,6 +317,7 @@ InternalMathDivRemS64x64 (
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
|
EFIAPI
|
||||||
InternalSwitchStack (
|
InternalSwitchStack (
|
||||||
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
|
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
|
||||||
IN VOID *Context1,
|
IN VOID *Context1,
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
|
EFIAPI
|
||||||
InternalSwitchStack (
|
InternalSwitchStack (
|
||||||
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
|
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
|
||||||
IN VOID *Context1, OPTIONAL
|
IN VOID *Context1, OPTIONAL
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
|
EFIAPI
|
||||||
InternalSwitchStack (
|
InternalSwitchStack (
|
||||||
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
|
IN SWITCH_STACK_ENTRY_POINT EntryPoint,
|
||||||
IN VOID *Context1,
|
IN VOID *Context1,
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
EFIAPI
|
|
||||||
IsNodeInList (
|
IsNodeInList (
|
||||||
IN CONST LIST_ENTRY *List,
|
IN CONST LIST_ENTRY *List,
|
||||||
IN CONST LIST_ENTRY *Node
|
IN CONST LIST_ENTRY *Node
|
||||||
|
@ -15,8 +15,10 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
#include "BaseLibInternals.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker functons that shifts a 64-bit integer left between 0 and 63 bits. The low bits
|
Shifts a 64-bit integer left between 0 and 63 bits. The low bits
|
||||||
are filled with zeros. The shifted value is returned.
|
are filled with zeros. The shifted value is returned.
|
||||||
|
|
||||||
This function shifts the 64-bit value Operand to the left by Count bits. The
|
This function shifts the 64-bit value Operand to the left by Count bits. The
|
||||||
@ -29,6 +31,7 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
UINT64
|
UINT64
|
||||||
|
EFIAPI
|
||||||
InternalMathLShiftU64 (
|
InternalMathLShiftU64 (
|
||||||
IN UINT64 Operand,
|
IN UINT64 Operand,
|
||||||
IN UINTN Count
|
IN UINTN Count
|
||||||
@ -38,7 +41,7 @@ InternalMathLShiftU64 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker functon that shifts a 64-bit integer right between 0 and 63 bits. This high bits
|
Shifts a 64-bit integer right between 0 and 63 bits. This high bits
|
||||||
are filled with zeros. The shifted value is returned.
|
are filled with zeros. The shifted value is returned.
|
||||||
|
|
||||||
This function shifts the 64-bit value Operand to the right by Count bits. The
|
This function shifts the 64-bit value Operand to the right by Count bits. The
|
||||||
@ -61,7 +64,7 @@ InternalMathRShiftU64 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that shifts a 64-bit integer right between 0 and 63 bits. The high bits
|
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.
|
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
|
This function shifts the 64-bit value Operand to the right by Count bits. The
|
||||||
@ -101,7 +104,7 @@ InternalMathARShiftU64 (
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that rotates a 64-bit integer left between 0 and 63 bits, filling
|
Rotates a 64-bit integer left between 0 and 63 bits, filling
|
||||||
the low bits with the high bits that were rotated.
|
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
|
This function rotates the 64-bit value Operand to the left by Count bits. The
|
||||||
@ -125,7 +128,7 @@ InternalMathLRotU64 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that rotates a 64-bit integer right between 0 and 63 bits, filling
|
Rotates a 64-bit integer right between 0 and 63 bits, filling
|
||||||
the high bits with the high low bits that were rotated.
|
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.
|
This function rotates the 64-bit value Operand to the right by Count bits.
|
||||||
@ -149,7 +152,7 @@ InternalMathRRotU64 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that switches the endianess of a 64-bit integer.
|
Switches the endianess of a 64-bit integer.
|
||||||
|
|
||||||
This function swaps the bytes in a 64-bit unsigned value to switch the value
|
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
|
from little endian to big endian or vice versa. The byte swapped value is
|
||||||
@ -173,7 +176,7 @@ InternalMathSwapBytes64 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that multiples a 64-bit unsigned integer by a 32-bit unsigned integer
|
Multiples a 64-bit unsigned integer by a 32-bit unsigned integer
|
||||||
and generates a 64-bit unsigned result.
|
and generates a 64-bit unsigned result.
|
||||||
|
|
||||||
This function multiples the 64-bit unsigned value Multiplicand by the 32-bit
|
This function multiples the 64-bit unsigned value Multiplicand by the 32-bit
|
||||||
@ -198,7 +201,7 @@ InternalMathMultU64x32 (
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that multiples a 64-bit unsigned integer by a 64-bit unsigned integer
|
Multiples a 64-bit unsigned integer by a 64-bit unsigned integer
|
||||||
and generates a 64-bit unsigned result.
|
and generates a 64-bit unsigned result.
|
||||||
|
|
||||||
This function multiples the 64-bit unsigned value Multiplicand by the 64-bit
|
This function multiples the 64-bit unsigned value Multiplicand by the 64-bit
|
||||||
@ -222,7 +225,7 @@ InternalMathMultU64x64 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
Divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
||||||
generates a 64-bit unsigned result.
|
generates a 64-bit unsigned result.
|
||||||
|
|
||||||
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
||||||
@ -246,7 +249,7 @@ InternalMathDivU64x32 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 32-bit unsigned integer
|
Divides a 64-bit unsigned integer by a 32-bit unsigned integer
|
||||||
and generates a 32-bit unsigned remainder.
|
and generates a 32-bit unsigned remainder.
|
||||||
|
|
||||||
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
||||||
@ -260,6 +263,7 @@ InternalMathDivU64x32 (
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
UINT32
|
UINT32
|
||||||
|
EFIAPI
|
||||||
InternalMathModU64x32 (
|
InternalMathModU64x32 (
|
||||||
IN UINT64 Dividend,
|
IN UINT64 Dividend,
|
||||||
IN UINT32 Divisor
|
IN UINT32 Divisor
|
||||||
@ -269,7 +273,7 @@ InternalMathModU64x32 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 32-bit unsigned integer and
|
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.
|
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
|
This function divides the 64-bit unsigned value Dividend by the 32-bit
|
||||||
@ -286,6 +290,7 @@ InternalMathModU64x32 (
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
UINT64
|
UINT64
|
||||||
|
EFIAPI
|
||||||
InternalMathDivRemU64x32 (
|
InternalMathDivRemU64x32 (
|
||||||
IN UINT64 Dividend,
|
IN UINT64 Dividend,
|
||||||
IN UINT32 Divisor,
|
IN UINT32 Divisor,
|
||||||
@ -299,7 +304,7 @@ InternalMathDivRemU64x32 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit unsigned integer by a 64-bit unsigned integer and
|
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.
|
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
|
This function divides the 64-bit unsigned value Dividend by the 64-bit
|
||||||
@ -316,6 +321,7 @@ InternalMathDivRemU64x32 (
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
UINT64
|
UINT64
|
||||||
|
EFIAPI
|
||||||
InternalMathDivRemU64x64 (
|
InternalMathDivRemU64x64 (
|
||||||
IN UINT64 Dividend,
|
IN UINT64 Dividend,
|
||||||
IN UINT64 Divisor,
|
IN UINT64 Divisor,
|
||||||
@ -329,7 +335,7 @@ InternalMathDivRemU64x64 (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Worker function that divides a 64-bit signed integer by a 64-bit signed integer and
|
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.
|
generates a 64-bit signed result and a optional 64-bit signed remainder.
|
||||||
|
|
||||||
This function divides the 64-bit unsigned value Dividend by the 64-bit
|
This function divides the 64-bit unsigned value Dividend by the 64-bit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user