]>
Commit | Line | Data |
---|---|---|
fd890f59 JJ |
1 | ;------------------------------------------------------------------------------\r |
2 | ;\r | |
3 | ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r | |
9344f092 | 4 | ; SPDX-License-Identifier: BSD-2-Clause-Patent\r |
fd890f59 JJ |
5 | ;\r |
6 | ; Module Name:\r | |
7 | ;\r | |
8 | ; DivU64x32.asm\r | |
9 | ;\r | |
10 | ; Abstract:\r | |
11 | ;\r | |
12 | ; Calculate the remainder of a 64-bit integer by a 32-bit integer\r | |
13 | ;\r | |
14 | ;------------------------------------------------------------------------------\r | |
15 | \r | |
16 | SECTION .text\r | |
17 | \r | |
18 | ;------------------------------------------------------------------------------\r | |
19 | ; UINT32\r | |
20 | ; EFIAPI\r | |
21 | ; InternalMathModU64x32 (\r | |
22 | ; IN UINT64 Dividend,\r | |
23 | ; IN UINT32 Divisor\r | |
24 | ; );\r | |
25 | ;------------------------------------------------------------------------------\r | |
26 | global ASM_PFX(InternalMathModU64x32)\r | |
27 | ASM_PFX(InternalMathModU64x32):\r | |
28 | mov eax, [esp + 8]\r | |
29 | mov ecx, [esp + 12]\r | |
30 | xor edx, edx\r | |
31 | div ecx\r | |
32 | mov eax, [esp + 4]\r | |
33 | div ecx\r | |
34 | mov eax, edx\r | |
35 | ret\r | |
36 | \r |