mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
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.
This commit is contained in:
parent
75190a8fa2
commit
0a2ef99804
@ -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>
|
2006-11-30 Lev Bishop <lev.bishop@gmail.com>
|
||||||
|
|
||||||
* libc/include/math.h: Allow C99 functions/macros to be
|
* libc/include/math.h: Allow C99 functions/macros to be
|
||||||
|
@ -44,7 +44,7 @@ char *strchr(const char *s, int c)
|
|||||||
vec_uint4 cmp_c, cmp_0;
|
vec_uint4 cmp_c, cmp_0;
|
||||||
vec_uint4 result;
|
vec_uint4 result;
|
||||||
vec_uint4 mask;
|
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
|
/* Scan memory array a quadword at a time. Skip leading
|
||||||
* mis-aligned bytes.
|
* mis-aligned bytes.
|
||||||
*/
|
*/
|
||||||
|
@ -45,7 +45,7 @@ char * strrchr(const char *s, int c)
|
|||||||
vec_uint4 cmp_c, cmp_0, cmp;
|
vec_uint4 cmp_c, cmp_0, cmp;
|
||||||
vec_uint4 res_ptr, res_cmp;
|
vec_uint4 res_ptr, res_cmp;
|
||||||
vec_uint4 mask, result;
|
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
|
/* Scan memory array a quadword at a time. Skip leading
|
||||||
* mis-aligned bytes.
|
* mis-aligned bytes.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user