diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-11-29 19:54:05 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-11-29 19:54:05 +0000 |
commit | 80c6ead24280c15ec859c63ce73924bb948b8323 (patch) | |
tree | ee3ab670670dff2015277882fdc8591e9a77ae3b /newlib/libc/machine | |
parent | 75bb63452d845a5915add61b56fed1c7d9fa31e3 (diff) | |
download | cygnal-80c6ead24280c15ec859c63ce73924bb948b8323.tar.gz cygnal-80c6ead24280c15ec859c63ce73924bb948b8323.tar.bz2 cygnal-80c6ead24280c15ec859c63ce73924bb948b8323.zip |
2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/memset.c: Fix type of explicit cast.
* libc/machine/spu/strncmp.c: Add explicit cast.
* libc/machine/spu/strrchr.c: Ditto.
* libc/machine/spu/strspn.c: Ditto.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/spu/memset.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/spu/strncmp.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/spu/strrchr.c | 4 | ||||
-rw-r--r-- | newlib/libc/machine/spu/strspn.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/memset.c b/newlib/libc/machine/spu/memset.c index d142605c1..0b1958d81 100644 --- a/newlib/libc/machine/spu/memset.c +++ b/newlib/libc/machine/spu/memset.c @@ -40,7 +40,7 @@ void * memset(void *s, int c, size_t n) { int skip, cnt, i; vec_uchar16 *vs; - vec_uchar16 vc, mask, one = spu_splats((unsigned int)-1); + vec_uchar16 vc, mask, one = spu_splats((unsigned char)-1); vs = (vec_uchar16 *)(s); vc = spu_splats((unsigned char)c); diff --git a/newlib/libc/machine/spu/strncmp.c b/newlib/libc/machine/spu/strncmp.c index 68c863b37..1893e80a4 100644 --- a/newlib/libc/machine/spu/strncmp.c +++ b/newlib/libc/machine/spu/strncmp.c @@ -50,7 +50,7 @@ int strncmp(const char *s1, const char *s2, size_t n) vec_uchar16 data1A, data1B, data1, data2A, data2B, data2; vec_uchar16 *ptr1, *ptr2; - data1 = data2 = spu_splats(0); + data1 = data2 = spu_splats((unsigned char)0); ptr1 = (vec_uchar16 *)s1; ptr2 = (vec_uchar16 *)s2; diff --git a/newlib/libc/machine/spu/strrchr.c b/newlib/libc/machine/spu/strrchr.c index c96d0f546..667895f28 100644 --- a/newlib/libc/machine/spu/strrchr.c +++ b/newlib/libc/machine/spu/strrchr.c @@ -62,8 +62,8 @@ char * strrchr(const char *s, int c) cmp_c = spu_and(spu_gather(spu_cmpeq(data, vc)), mask); cmp_0 = spu_and(spu_gather(spu_cmpeq(data, 0)), mask); - res_ptr = spu_splats(0); - res_cmp = spu_splats(0); + res_ptr = spu_splats(0U); + res_cmp = spu_splats(0U); while (spu_extract(cmp_0, 0) == 0) { cmp = spu_cmpeq(cmp_c, 0); diff --git a/newlib/libc/machine/spu/strspn.c b/newlib/libc/machine/spu/strspn.c index 93cbd9d3c..511e6316e 100644 --- a/newlib/libc/machine/spu/strspn.c +++ b/newlib/libc/machine/spu/strspn.c @@ -63,7 +63,7 @@ size_t strspn(const char *s1, const char *s2) do { data1 = spu_shuffle(dataA, dataB, shuffle); - match = spu_splats(0); + match = spu_splats((unsigned char)0); ptr2 = (vec_uchar16 *)s2; data2 = *ptr2; |