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
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-12-01 20:18:36 +0300
committerJeff Johnston <jjohnstn@redhat.com>2006-12-01 20:18:36 +0300
commit0a2ef9980488275d82c98f18a330c426ebdb2f7d (patch)
treecdd9fae0494c4a96019ce606228c865ae9c81adc /newlib
parent75190a8fa2a51b16fdf33f7b2b88f9d3c5fa17c2 (diff)
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')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/machine/spu/strchr.c2
-rw-r--r--newlib/libc/machine/spu/strrchr.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b6d3928fc..f2e91d0f1 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2006-11-30 Lev Bishop <lev.bishop@gmail.com>
* libc/include/math.h: Allow C99 functions/macros to be
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.
*/
diff --git a/newlib/libc/machine/spu/strrchr.c b/newlib/libc/machine/spu/strrchr.c
index 667895f28..d31171078 100644
--- a/newlib/libc/machine/spu/strrchr.c
+++ b/newlib/libc/machine/spu/strrchr.c
@@ -45,7 +45,7 @@ char * strrchr(const char *s, int c)
vec_uint4 cmp_c, cmp_0, cmp;
vec_uint4 res_ptr, res_cmp;
vec_uint4 mask, result;
- 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.
*/