![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * linux/arch/arm/lib/memchr.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(memchr) 0015 1: subs r2, r2, #1 0016 bmi 2f 0017 ldrb r3, [r0], #1 0018 teq r3, r1 0019 bne 1b 0020 sub r0, r0, #1 0021 2: movne r0, #0 0022 ret lr 0023 ENDPROC(memchr)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |