]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiZeroMem.c
1) Replace IA32API with EFIAPI to standardise the calling convention.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EfiCommonLib / EfiZeroMem.c
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 EfiZeroMem.c\r
15\r
16Abstract:\r
17\r
18 Implementation of the EfiSetMem routine. This function is broken\r
19 out into its own source file so that it can be excluded from a\r
20 build for a particular platform easily if an optimized version \r
21 is desired.\r
22\r
23--*/\r
24\r
25#include "Tiano.h"\r
26\r
27\r
28VOID\r
29EfiCommonLibZeroMem (\r
30 IN VOID *Buffer,\r
31 IN UINTN Size\r
32 )\r
33/*++\r
34\r
35Routine Description:\r
36\r
37 Set Buffer to 0 for Size bytes.\r
38\r
39Arguments:\r
40\r
41 Buffer - Memory to set.\r
42\r
43 Size - Number of bytes to set\r
44\r
45Returns:\r
46\r
47 None\r
48\r
49--*/\r
50{\r
51 INT8 *Ptr;\r
52\r
53 Ptr = Buffer;\r
54 while (Size--) {\r
55 *(Ptr++) = 0;\r
56 }\r
57}\r