OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [sh/] [lib/] [memchr.S] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/* $Id: memchr.S,v 1.1.1.1 2004-04-15 01:17:17 phoenix Exp $
2
 *
3
 * "memchr" implementation of SuperH
4
 *
5
 * Copyright (C) 1999  Niibe Yutaka
6
 *
7
 */
8
 
9
/*
10
 * void *memchr(const void *s, int c, size_t n);
11
 */
12
 
13
#include 
14
ENTRY(memchr)
15
        tst     r6,r6
16
        bt/s    2f
17
         exts.b r5,r5
18
1:      mov.b   @r4,r1
19
        cmp/eq  r1,r5
20
        bt/s    3f
21
         dt     r6
22
        bf/s    1b
23
         add    #1,r4
24
2:      mov     #0,r4
25
3:      rts
26
         mov    r4,r0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.