Changeset 7f1c620 in mainline for arch/sparc64/include/atomic.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/sparc64/include/atomic.h

    r991779c5 r7f1c620  
    5050static inline long atomic_add(atomic_t *val, int i)
    5151{
    52         __u64 a, b;
    53         volatile __u64 x = (__u64) &val->count;
     52        uint64_t a, b;
     53        volatile uint64_t x = (uint64_t) &val->count;
    5454
    5555        __asm__ volatile (
     
    6161                "bne 0b\n"              /* The operation failed and must be attempted again if a != b. */
    6262                "nop\n"
    63                 : "=m" (*((__u64 *)x)), "=r" (a), "=r" (b)
     63                : "=m" (*((uint64_t *)x)), "=r" (a), "=r" (b)
    6464                : "r" (i)
    6565        );
Note: See TracChangeset for help on using the changeset viewer.