]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/memset.c
1 // ------------------------------------------------------------------------------
3 // Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
4 // Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
6 // SPDX-License-Identifier: BSD-2-Clause-Patent
8 // ------------------------------------------------------------------------------
10 typedef __SIZE_TYPE__
size_t;
12 static __attribute__ ((__used__
))
32 // Other modules (such as CryptoPkg/IntrinsicLib) may provide another
33 // implementation of memset(), which may conflict with this one if this
34 // object was pulled into the link due to the definitions below. So make
35 // our memset() 'weak' to let the other implementation take precedence.
37 __attribute__ ((__weak__
, __alias__ ("__memset")))
54 __memset (dest
, c
, n
);
57 __attribute__ ((__alias__ ("__aeabi_memset")))
65 __attribute__ ((__alias__ ("__aeabi_memset")))
79 __memset (dest
, 0, n
);
82 __attribute__ ((__alias__ ("__aeabi_memclr")))
89 __attribute__ ((__alias__ ("__aeabi_memclr")))