]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/memset.S
ArmPkg: use unified asm syntax for CLANG
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / memset.S
CommitLineData
3402aac7 1#------------------------------------------------------------------------------\r
1e57a462 2#\r
3# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
284fb5c8 4# Copyright (c) 2014, ARM Ltd. All rights reserved.<BR>\r
1e57a462 5#\r
6# This program and the accompanying materials\r
7# are licensed and made available under the terms and conditions of the BSD License\r
8# which accompanies this distribution. The full text of the license may be found at\r
9# http://opensource.org/licenses/bsd-license.php\r
10#\r
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13#\r
14#------------------------------------------------------------------------------\r
15\r
16\r
17 .text\r
18 .align 2\r
19 GCC_ASM_EXPORT (memset)\r
20\r
284fb5c8
OM
21# VOID\r
22# EFIAPI\r
23# memset (\r
24# IN VOID *Destination,\r
25# IN UINT32 Character,\r
26# IN UINT32 Size\r
27# );\r
1e57a462 28ASM_PFX(memset):\r
284fb5c8
OM
29 cmp r2, #0\r
30 bxeq lr\r
1e57a462 31 @ args = 0, pretend = 0, frame = 0\r
32 @ frame_needed = 1, uses_anonymous_args = 0\r
1e57a462 33L10:\r
284fb5c8
OM
34 strb r1, [r0], #1\r
35 subs r2, r2, #1\r
36 @ While size is not 0\r
1e57a462 37 bne L10\r
284fb5c8 38 bx lr\r