2 * Copyright (C) 2003-2007 Analog Devices Inc., All Rights Reserved.
4 * This file is subject to the terms and conditions of the GNU Library General
5 * Public License. See the file "COPYING.LIB" in the main directory of this
6 * archive for more details.
8 * Non-LGPL License also available as part of VisualDSP++
9 * http://www.analog.com/processors/resources/crosscore/visualDspDevSoftware.html
14 /* void *memchr(const void *s, int c, size_t n);
16 * R1 = sought byte (c)
19 * Returns pointer to located character.
28 P0 = R0; /* P0 = address */
29 P2 = R2; /* P2 = count */
35 LSETUP (.Lbyte_loop_s, .Lbyte_loop_e) LC0=P2;
53 .size _memchr,.-_memchr
55 libc_hidden_def (memchr)