X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseMemoryLib%2FSetMem.c;h=546e6655122529a49aad091914ef3b0fd1e54450;hp=d051f2d63bf9f1954363f1db564b755f4a7a4b3f;hb=373ade0eb64a522e45b1b94c15b95fb5ab417c00;hpb=582510249f2fb1334e507b99421b9485f6b89159 diff --git a/MdePkg/Library/BaseMemoryLib/SetMem.c b/MdePkg/Library/BaseMemoryLib/SetMem.c index d051f2d63b..546e665512 100644 --- a/MdePkg/Library/BaseMemoryLib/SetMem.c +++ b/MdePkg/Library/BaseMemoryLib/SetMem.c @@ -4,7 +4,7 @@ build for a particular platform easily if an optimized version is desired. - Copyright (c) 2006, Intel Corporation
+ Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -13,18 +13,19 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: SetMem.c - **/ + + + #include "MemLibInternals.h" /** Set Buffer to Value for Size bytes. - @param Buffer Memory to set. - @param Size Number of bytes to set - @param Value Value of the set operation. + @param Buffer Memory to set. + @param Length Number of bytes to set + @param Value Value of the set operation. @return Buffer @@ -33,7 +34,7 @@ VOID * EFIAPI InternalMemSetMem ( IN VOID *Buffer, - IN UINTN Size, + IN UINTN Length, IN UINT8 Value ) { @@ -45,7 +46,7 @@ InternalMemSetMem ( volatile UINT8 *Pointer; Pointer = (UINT8*)Buffer; - while (Size-- != 0) { + while (Length-- != 0) { *(Pointer++) = Value; } return Buffer;