Changeset 7f1c620 in mainline for arch/ia32/include/memstr.h


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/memstr.h

    r991779c5 r7f1c620  
    5050static inline void * memcpy(void * dst, const void * src, size_t cnt)
    5151{
    52         __native d0, d1, d2;
     52        unative_t d0, d1, d2;
    5353
    5454        __asm__ __volatile__(
     
    6666                "1:\n"
    6767                : "=&c" (d0), "=&D" (d1), "=&S" (d2)
    68                 : "0" ((__native) (cnt / 4)), "g" ((__native) cnt), "1" ((__native) dst), "2" ((__native) src)
     68                : "0" ((unative_t) (cnt / 4)), "g" ((unative_t) cnt), "1" ((unative_t) dst), "2" ((unative_t) src)
    6969                : "memory");
    7070
     
    8686static inline int memcmp(const void * src, const void * dst, size_t cnt)
    8787{
    88         __u32 d0, d1, d2;
     88        uint32_t d0, d1, d2;
    8989        int ret;
    9090       
     
    9696                "1:\n"
    9797                : "=a" (ret), "=%S" (d0), "=&D" (d1), "=&c" (d2)
    98                 : "0" (0), "1" ((__native) src), "2" ((__native) dst), "3" ((__native) cnt)
     98                : "0" (0), "1" ((unative_t) src), "2" ((unative_t) dst), "3" ((unative_t) cnt)
    9999        );
    100100       
     
    111111 * @param x Value to fill
    112112 */
    113 static inline void memsetw(__address dst, size_t cnt, __u16 x)
     113static inline void memsetw(uintptr_t dst, size_t cnt, uint16_t x)
    114114{
    115         __u32 d0, d1;
     115        uint32_t d0, d1;
    116116       
    117117        __asm__ __volatile__ (
     
    133133 * @param x Value to fill
    134134 */
    135 static inline void memsetb(__address dst, size_t cnt, __u8 x)
     135static inline void memsetb(uintptr_t dst, size_t cnt, uint8_t x)
    136136{
    137         __u32 d0, d1;
     137        uint32_t d0, d1;
    138138       
    139139        __asm__ __volatile__ (
Note: See TracChangeset for help on using the changeset viewer.