1 //===-- aeabi_memset.S - EABI memset implementation -----------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "../assembly.h"
12 // void __aeabi_memset(void *dest, size_t n, int c) { memset(dest, c, n); }
13 // void __aeabi_memclr(void *dest, size_t n) { __aeabi_memset(dest, n, 0); }
17 DEFINE_COMPILERRT_FUNCTION(__aeabi_memset)
22 END_COMPILERRT_FUNCTION(__aeabi_memset)
24 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memset4, __aeabi_memset)
25 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memset8, __aeabi_memset)
27 DEFINE_COMPILERRT_FUNCTION(__aeabi_memclr)
31 END_COMPILERRT_FUNCTION(__aeabi_memclr)
33 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memclr4, __aeabi_memclr)
34 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memclr8, __aeabi_memclr)
36 NO_EXEC_STACK_DIRECTIVE