]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibSse2/SetMem64Wrapper.c
2 SetMem64() implementation.
4 The following BaseMemoryLib instances contain the same copy of this file:
14 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
15 SPDX-License-Identifier: BSD-2-Clause-Patent
19 #include "MemLibInternals.h"
22 Fills a target buffer with a 64-bit value, and returns the target buffer.
24 This function fills Length bytes of Buffer with the 64-bit value specified by
25 Value, and returns Buffer. Value is repeated every 64-bits in for Length
28 If Length > 0 and Buffer is NULL, then ASSERT().
29 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
30 If Buffer is not aligned on a 64-bit boundary, then ASSERT().
31 If Length is not aligned on a 64-bit boundary, then ASSERT().
33 @param Buffer The pointer to the target buffer to fill.
34 @param Length The number of bytes in Buffer to fill.
35 @param Value The value with which to fill Length bytes of Buffer.
52 ASSERT (Buffer
!= NULL
);
53 ASSERT ((Length
- 1) <= (MAX_ADDRESS
- (UINTN
)Buffer
));
54 ASSERT ((((UINTN
)Buffer
) & (sizeof (Value
) - 1)) == 0);
55 ASSERT ((Length
& (sizeof (Value
) - 1)) == 0);
57 return InternalMemSetMem64 (Buffer
, Length
/ sizeof (Value
), Value
);