]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
4ea9375a HT |
3 | Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | memset.c\r | |
14 | \r | |
15 | Abstract:\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 | |
30 | VOID *\r | |
31 | memset (\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 |