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/strncpy.S')
-rw-r--r--newlib/libc/machine/rx/strncpy.S18
1 files changed, 0 insertions, 18 deletions
diff --git a/newlib/libc/machine/rx/strncpy.S b/newlib/libc/machine/rx/strncpy.S
deleted file mode 100644
index e04922a59..000000000
--- a/newlib/libc/machine/rx/strncpy.S
+++ /dev/null
@@ -1,18 +0,0 @@
- .file "strncpy.S"
-
- .section .text
- .global _strncpy
- .type _strncpy,@function
-_strncpy:
- mov r1, r4 ; Save a copy of the dest pointer.
- mov r3, r5 ; Save a copy of the byte count
- smovu ; Copy the bytes
- cmp #0, r3 ; If we have copied the number of bytes requested
- beq 1f ; then skip the next bit:
- add r4, r5, r1 ; Point to the last byte that we are supposed to write.
- sub r3, r1 ; Subtract the number of bytes left to be written.
- mov #0, r2 ; Fill the remaining bytes with NULs,
- sstr.b
-1:
- mov r4, r1 ; Return the destination pointer
- rts