![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * linux/arch/arm/lib/strchr.S 0004 * 0005 * Copyright (C) 1995-2000 Russell King 0006 * 0007 * ASM optimised string functions 0008 */ 0009 #include <linux/linkage.h> 0010 #include <asm/assembler.h> 0011 0012 .text 0013 .align 5 0014 ENTRY(strchr) 0015 and r1, r1, #0xff 0016 1: ldrb r2, [r0], #1 0017 teq r2, r1 0018 teqne r2, #0 0019 bne 1b 0020 teq r2, r1 0021 movne r0, #0 0022 subeq r0, r0, #1 0023 ret lr 0024 ENDPROC(strchr)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |