diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2009-07-01 14:37:15 +0000 |
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-07-09 01:32:17 -0700 |
| commit | 68d456b274e8a4511726ff0e2b93e587898efa64 (patch) | |
| tree | a6823d47930493dddc9849ebdf0ee8991fcc9b0f | |
| parent | 42ec8700ec6ad971c9627859df3dc342a82d3cac (diff) | |
| download | uClibc-alpine-68d456b274e8a4511726ff0e2b93e587898efa64.tar.bz2 uClibc-alpine-68d456b274e8a4511726ff0e2b93e587898efa64.tar.xz | |
Correct ARM memcpy comments.
The comments on register usage in ARM memcpy had dest and src the
wrong way round; this patch (originally from Mark Shinwell) corrects
this and adds a note on the return value.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| -rw-r--r-- | libc/string/arm/_memcpy.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/string/arm/_memcpy.S b/libc/string/arm/_memcpy.S index 1dc0887a4..b26080d02 100644 --- a/libc/string/arm/_memcpy.S +++ b/libc/string/arm/_memcpy.S @@ -67,8 +67,9 @@ * a time where possible. * * Note: r12 (aka ip) can be trashed during the function along with - * r0-r3 although r0-r2 have defined uses i.e. src, dest, len through out. + * r0-r3 although r0-r2 have defined uses i.e. dest, src, len throughout. * Additional registers are preserved prior to use i.e. r4, r5 & lr + * The return value in r0 must be the destination address. * * Apologies for the state of the comments ;-) */ |
