Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/rx/memchr.S')
-rw-r--r--newlib/libc/machine/rx/memchr.S13
1 files changed, 0 insertions, 13 deletions
diff --git a/newlib/libc/machine/rx/memchr.S b/newlib/libc/machine/rx/memchr.S
deleted file mode 100644
index 937753cef..000000000
--- a/newlib/libc/machine/rx/memchr.S
+++ /dev/null
@@ -1,13 +0,0 @@
- .file "memchr.S"
-
- .section .text
-
- .global _memchr
- .type _memchr,@function
-_memchr:
- cmp #0, r3 ; If r3 is 0 suntil.b will do nothing and not set any flags...
- stz #1, r1 ; ...so store 1 into r1. It will be decremented by the SUB later.
- suntil.b ; Search until *r1 == r2 or r3 bytes have been examined.
- stnz #1, r1 ; If no match was found return NULL.
- sub #1, r1 ; suntil.b leaves r1 pointing at the address *after* the match.
- rts