]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Math worker functions.\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include "BaseLibInternals.h"\r | |
10 | \r | |
11 | /**\r | |
12 | Rotates a 64-bit integer left between 0 and 63 bits, filling the low bits\r | |
13 | with the high bits that were rotated.\r | |
14 | \r | |
15 | This function rotates the 64-bit value Operand to the left by Count bits. The\r | |
16 | low Count bits are fill with the high Count bits of Operand. The rotated\r | |
17 | value is returned.\r | |
18 | \r | |
19 | If Count is greater than 63, then ASSERT().\r | |
20 | \r | |
21 | @param Operand The 64-bit operand to rotate left.\r | |
22 | @param Count The number of bits to rotate left.\r | |
23 | \r | |
24 | @return Operand << Count\r | |
25 | \r | |
26 | **/\r | |
27 | UINT64\r | |
28 | EFIAPI\r | |
29 | LRotU64 (\r | |
30 | IN UINT64 Operand,\r | |
31 | IN UINTN Count\r | |
32 | )\r | |
33 | {\r | |
34 | ASSERT (Count < 64);\r | |
35 | return InternalMathLRotU64 (Operand, Count);\r | |
36 | }\r |