diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-04-30 16:26:39 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-04-30 16:26:39 +0000 |
commit | 68d7943fa266a549037715f07a2f212286ab53e1 (patch) | |
tree | c4a79c6baf14cd6fe9df37a7c0756861cf4774f3 /sysdeps/i386 | |
parent | cf5464810d8643698e4f3538658f5f871f550dcb (diff) | |
download | glibc-68d7943fa266a549037715f07a2f212286ab53e1.zip glibc-68d7943fa266a549037715f07a2f212286ab53e1.tar.gz glibc-68d7943fa266a549037715f07a2f212286ab53e1.tar.bz2 |
Update.
* sysdeps/i386/i486/bits/string.h: Replace __uintXX_t types with
base types.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/i486/bits/string.h | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/sysdeps/i386/i486/bits/string.h b/sysdeps/i386/i486/bits/string.h index 2aa0b50..136de9a 100644 --- a/sysdeps/i386/i486/bits/string.h +++ b/sysdeps/i386/i486/bits/string.h @@ -204,12 +204,13 @@ memcmp (__const void *__s1, __const void *__s2, size_t __n) : __memset_gg (s, c, n))))) #define __memset_c1(s, c) ({ void *__s = (s); \ - *((__uint8_t *) __s) = (__uint8_t) (c); __s; }) + *((unsigned char *) __s) = (unsigned char) (c); \ + __s; }) #define __memset_gc(s, c, n) \ ({ void *__s = (s); \ - __uint32_t *__ts = (__uint32_t *) __s; \ - __uint8_t __c = (__uint8_t) (c); \ + unsigned int *__ts = (unsigned int *) __s; \ + unsigned char __c = (unsigned char) (c); \ \ /* We apply a trick here. `gcc' would implement the following \ assignments using absolute operands. But this uses to much \ @@ -227,8 +228,8 @@ memcmp (__const void *__s1, __const void *__s2, size_t __n) case 7: \ *__ts++ = __c * 0x01010101; \ case 3: \ - *((__uint16_t *) __ts)++ = __c * 0x0101; \ - *((__uint8_t *) __ts) = __c; \ + *((unsigned short int *) __ts)++ = __c * 0x0101; \ + *((unsigned char *) __ts) = __c; \ break; \ \ case 14: \ @@ -238,7 +239,7 @@ memcmp (__const void *__s1, __const void *__s2, size_t __n) case 6: \ *__ts++ = __c * 0x01010101; \ case 2: \ - *((__uint16_t *) __ts) = __c * 0x0101; \ + *((unsigned short int *) __ts) = __c * 0x0101; \ break; \ \ case 13: \ @@ -248,7 +249,7 @@ memcmp (__const void *__s1, __const void *__s2, size_t __n) case 5: \ *__ts++ = __c * 0x01010101; \ case 1: \ - *((__uint8_t *) __ts) = __c; \ + *((unsigned char *) __ts) = __c; \ break; \ \ case 16: \ @@ -267,9 +268,9 @@ memcmp (__const void *__s1, __const void *__s2, size_t __n) #define __memset_ccn(s, c, n) \ (((n) % 4 == 0) \ - ? __memset_ccn_by4 (s, ((__uint8_t) (c)) * 0x01010101, n) \ + ? __memset_ccn_by4 (s, ((unsigned char) (c)) * 0x01010101, n) \ : (((n) % 2 == 0) \ - ? __memset_ccn_by2 (s, ((__uint8_t) (c)) * 0x01010101, n) \ + ? __memset_ccn_by2 (s, ((unsigned char) (c)) * 0x01010101, n) \ : __memset_gg (s, c, n))) __STRING_INLINE void *__memset_ccn_by4 (void *__s, int __c, size_t __n); @@ -509,40 +510,40 @@ __strlen_g (__const char *__str) *__dest = '\0'; \ break; \ case 2: \ - *((__uint16_t *) __dest) = \ + *((unsigned short int *) __dest) = \ __STRING_SMALL_GET16 (src, 0); \ break; \ case 3: \ - *((__uint16_t *) __dest) = \ + *((unsigned short int *) __dest) = \ __STRING_SMALL_GET16 (src, 0); \ *(__dest + 2) = '\0'; \ break; \ case 4: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ break; \ case 5: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ *(__dest + 4) = '\0'; \ break; \ case 6: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ - *((__uint16_t *) (__dest + 4)) = \ + *((unsigned short int *) (__dest + 4)) = \ __STRING_SMALL_GET16 (src, 4); \ break; \ case 7: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ - *((__uint16_t *) (__dest + 4)) = \ + *((unsigned short int *) (__dest + 4)) = \ __STRING_SMALL_GET16 (src, 4); \ *(__dest + 6) = '\0'; \ break; \ case 8: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ - *((__uint32_t *) (__dest + 4)) = \ + *((unsigned int *) (__dest + 4)) = \ __STRING_SMALL_GET32 (src, 4); \ break; \ } \ @@ -598,44 +599,44 @@ __strcpy_g (char *__dest, __const char *__src) *__dest = '\0'; \ break; \ case 2: \ - *((__uint16_t *) __dest) = \ + *((unsigned short int *) __dest) = \ __STRING_SMALL_GET16 (src, 0); \ ++__dest; \ break; \ case 3: \ - *((__uint16_t *) __dest)++ = \ + *((unsigned short int *) __dest)++ = \ __STRING_SMALL_GET16 (src, 0); \ *__dest = '\0'; \ break; \ case 4: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ __dest += 3; \ break; \ case 5: \ - *((__uint32_t *) __dest)++ = \ + *((unsigned int *) __dest)++ = \ __STRING_SMALL_GET32 (src, 0); \ *__dest = '\0'; \ break; \ case 6: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ - *((__uint16_t *) (__dest + 4)) = \ + *((unsigned short int *) (__dest + 4)) = \ __STRING_SMALL_GET16 (src, 4); \ __dest += 5; \ break; \ case 7: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ - *((__uint16_t *) (__dest + 4)) = \ + *((unsigned short int *) (__dest + 4)) = \ __STRING_SMALL_GET16 (src, 4); \ __dest += 6; \ *__dest = '\0'; \ break; \ case 8: \ - *((__uint32_t *) __dest) = \ + *((unsigned int *) __dest) = \ __STRING_SMALL_GET32 (src, 0); \ - *((__uint32_t *) (__dest + 4)) = \ + *((unsigned int *) (__dest + 4)) = \ __STRING_SMALL_GET32 (src, 4); \ __dest += 7; \ break; \ |