]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/arm/memset.S (memset): Correct handling of negative
authorDaniel Jacobowitz <dan@codesourcery.com>
Mon, 10 Oct 2005 15:00:47 +0000 (15:00 +0000)
committerDaniel Jacobowitz <dan@codesourcery.com>
Mon, 10 Oct 2005 15:00:47 +0000 (15:00 +0000)
arguments.

ChangeLog.arm
sysdeps/arm/memset.S

index f2a8a847556958e51e1bd733d6794f1651a2683a..16156899fdef240eecf4ef886a197e5e8177e1a2 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * sysdeps/arm/memset.S (memset): Correct handling of negative
+       arguments.
+
 2005-10-10  Philip Blundell  <philb@gnu.org>
 
        * sysdeps/arm/_mcount.S: Suppress profiling when building this
index 1e2699d077eaf6e149af420a36d12eb8c2f3f69b..b37451bc17575cdf2bd78bc5f9583ccca31ecf21 100644 (file)
@@ -32,6 +32,7 @@ ENTRY(memset)
        subne   r2, r2, #1
        bne     1b
 
+       and     r1, r1, #255    @ clear any sign bits
        orr     r1, r1, r1, lsl $8
        orr     r1, r1, r1, lsl $16
 
This page took 0.046891 seconds and 5 git commands to generate.