2 * Copyright 2005-2009 Analog Devices Inc.
4 * Licensed under the Clear BSD license or the GPL-2 (or later)
7 #include <linux/linkage.h>
9 /* void *memchr(const void *s, int c, size_t n);
11 * R1 = sought byte (c)
14 * Returns pointer to located character.
22 P0 = R0; /* P0 = address */
23 P2 = R2; /* P2 = count */
29 LSETUP (.Lbyte_loop_s, .Lbyte_loop_e) LC0=P2;