]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/CompilerStub/memset.c
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / CompilerStub / memset.c
CommitLineData
3eb9473e 1/*++\r
2\r
4ea9375a
HT
3Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 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 memset.c\r
14\r
15Abstract:\r
16\r
17 The Microsoft compiler inlines memset and we can not stop it.\r
18 These routines allow the code to link!\r
19\r
20 There is no *.h definition of these modules as they are well known by the \r
21 compiler. See Microsoft documentation for more details!\r
22\r
23 volatile is used to prevent the compiler from trying to implement these\r
24 C functions as inline functions. \r
25\r
26--*/\r
27\r
28#include "Tiano.h"\r
29\r
30VOID *\r
31memset (\r
32 OUT VOID *Dest,\r
1afe0401 33 IN int Char,\r
3eb9473e 34 IN UINTN Count\r
35 )\r
36{\r
37 volatile UINT8 *Ptr;\r
38 \r
39 for (Ptr = Dest; Count > 0; Count--, Ptr++) {\r
40 *Ptr = (UINT8) Char;\r
41 }\r
42\r
43 return Dest;\r
44}\r
45\r