diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-12-01 17:18:36 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-12-01 17:18:36 +0000 |
commit | 0a2ef9980488275d82c98f18a330c426ebdb2f7d (patch) | |
tree | cdd9fae0494c4a96019ce606228c865ae9c81adc /newlib/libc/machine/spu/strchr.c | |
parent | 75190a8fa2a51b16fdf33f7b2b88f9d3c5fa17c2 (diff) | |
download | cygnal-0a2ef9980488275d82c98f18a330c426ebdb2f7d.tar.gz cygnal-0a2ef9980488275d82c98f18a330c426ebdb2f7d.tar.bz2 cygnal-0a2ef9980488275d82c98f18a330c426ebdb2f7d.zip |
2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/strchr.c: Fix mask for misaligned string.
* libc/machine/spu/strrchr.c: Ditto.
Diffstat (limited to 'newlib/libc/machine/spu/strchr.c')
-rw-r--r-- | newlib/libc/machine/spu/strchr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/machine/spu/strchr.c b/newlib/libc/machine/spu/strchr.c index bd0fec1db..dc93d601f 100644 --- a/newlib/libc/machine/spu/strchr.c +++ b/newlib/libc/machine/spu/strchr.c @@ -44,7 +44,7 @@ char *strchr(const char *s, int c) vec_uint4 cmp_c, cmp_0; vec_uint4 result; vec_uint4 mask; - vec_uint4 one = spu_splats((unsigned int)-1); + vec_uint4 one = spu_splats(0xffffU); /* Scan memory array a quadword at a time. Skip leading * mis-aligned bytes. */ |