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/strlen.S')
-rw-r--r--newlib/libc/machine/rx/strlen.S16
1 files changed, 0 insertions, 16 deletions
diff --git a/newlib/libc/machine/rx/strlen.S b/newlib/libc/machine/rx/strlen.S
deleted file mode 100644
index c07b429b2..000000000
--- a/newlib/libc/machine/rx/strlen.S
+++ /dev/null
@@ -1,16 +0,0 @@
- .file "strlen.S"
-
- .section .text
-
- .global _strlen
- .type _strlen,@function
-_strlen:
- add #0, r1, r4 ; Save a copy of the string start address and set the condition flags.
- beq null_string ; Test for a NULL pointer.
- mov #-1, r3 ; Set a limit on the number of bytes examined.
- mov #0, r2 ; Stop searching when we find a NUL byte.
- suntil.b ; Search until *r1 == r2
- sub #1, r1 ; suntil.b leaves r1 pointing to the byte beyond the match.
-null_string:
- sub r4, r1 ; Compute the length.
- rts