/*1* linux/arch/arm/lib/strchr.S2*3* Copyright (C) 1995-2000 Russell King4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9* ASM optimised string functions10*/11#include <linux/linkage.h>12#include <asm/assembler.h>1314.text15.align 516ENTRY(strchr)17and r1, r1, #0xff181: ldrb r2, [r0], #119teq r2, r120teqne r2, #021bne 1b22teq r2, r123movne r0, #024subeq r0, r0, #125mov pc, lr26ENDPROC(strchr)272829