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