TianoCore EDK2
master
Loading...
Searching...
No Matches
memset_ms.c
1
// ------------------------------------------------------------------------------
2
//
3
// Copyright (c) 2017, Pete Batard. All rights reserved.<BR>
4
// Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
5
//
6
// SPDX-License-Identifier: BSD-2-Clause-Patent
7
//
8
// ------------------------------------------------------------------------------
9
10
#if defined (_M_ARM64)
11
typedef
unsigned
__int64 size_t;
12
#else
13
typedef
unsigned
__int32 size_t;
14
#endif
15
16
void
*
17
memset (
18
void
*,
19
int
,
20
size_t
21
);
22
23
#pragma intrinsic(memset)
24
#pragma function(memset)
25
void
*
26
memset (
27
void
*s,
28
int
c,
29
size_t
n
30
)
31
{
32
unsigned
char
*d;
33
34
d = s;
35
36
while
(n-- != 0) {
37
*d++ = (
unsigned
char)c;
38
}
39
40
return
s;
41
}
MdePkg
Library
CompilerIntrinsicsLib
memset_ms.c
Generated on Fri Nov 15 2024 18:01:17 for TianoCore EDK2 by
1.9.6