]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/memset.c
1 //------------------------------------------------------------------------------
3 // Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
5 // SPDX-License-Identifier: BSD-2-Clause-Patent
7 //------------------------------------------------------------------------------
9 typedef __SIZE_TYPE__
size_t;
11 static __attribute__((__used__
))
12 void *__memset(void *s
, int c
, size_t n
)
23 // Other modules (such as CryptoPkg/IntrinsicLib) may provide another
24 // implementation of memset(), which may conflict with this one if this
25 // object was pulled into the link due to the definitions below. So make
26 // our memset() 'weak' to let the other implementation take precedence.
28 __attribute__((__weak__
, __alias__("__memset")))
29 void *memset(void *dest
, int c
, size_t n
);
33 void __aeabi_memset(void *dest
, size_t n
, int c
)
38 __attribute__((__alias__("__aeabi_memset")))
39 void __aeabi_memset4(void *dest
, size_t n
, int c
);
41 __attribute__((__alias__("__aeabi_memset")))
42 void __aeabi_memset8(void *dest
, size_t n
, int c
);
44 void __aeabi_memclr(void *dest
, size_t n
)
49 __attribute__((__alias__("__aeabi_memclr")))
50 void __aeabi_memclr4(void *dest
, size_t n
);
52 __attribute__((__alias__("__aeabi_memclr")))
53 void __aeabi_memclr8(void *dest
, size_t n
);