]>
Commit | Line | Data |
---|---|---|
e1f414b6 | 1 | /** @file\r |
2 | AsmReadMm3 function\r | |
3 | \r | |
bb817c56 | 4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
e1f414b6 | 6 | \r |
7 | **/\r | |
8 | \r | |
42eedea9 | 9 | /**\r |
10 | Reads the current value of 64-bit MMX Register #3 (MM3).\r | |
11 | \r | |
12 | Reads and returns the current value of MM3. This function is only available\r | |
030cd1a2 | 13 | on IA-32 and x64.\r |
42eedea9 | 14 | \r |
15 | @return The current value of MM3.\r | |
16 | \r | |
17 | **/\r | |
e1f414b6 | 18 | UINT64\r |
19 | EFIAPI\r | |
20 | AsmReadMm3 (\r | |
21 | VOID\r | |
22 | )\r | |
23 | {\r | |
24 | _asm {\r | |
25 | push eax\r | |
26 | push eax\r | |
27 | movq [esp], mm3\r | |
28 | pop eax\r | |
29 | pop edx\r | |
30 | emms\r | |
31 | }\r | |
32 | }\r |