Changeset 8a0b3730 in mainline for arch/ia64/include/atomic.h


Ignore:
Timestamp:
2005-11-11T17:08:17Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e8b3c8
Parents:
73a4bab
Message:

Re-aply mistakenly reverted changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/include/atomic.h

    r73a4bab r8a0b3730  
    4141        __asm__ volatile ("fetchadd8.rel %0 = %1, %2\n" : "=r" (v), "+m" (*val) : "i" (imm));
    4242 
    43         *val += imm;
    44        
    4543        return v;
    4644}
     
    5452
    5553
    56 static inline atomic_t atomic_inc_post(atomic_t *val) { return atomic_add(val, 1)+1; }
    57 static inline atomic_t atomic_dec_post(atomic_t *val) { return atomic_add(val, -1)-1; }
    58 
    59 
    60 
     54static inline atomic_t atomic_inc_post(atomic_t *val) { return atomic_add(val, 1) + 1; }
     55static inline atomic_t atomic_dec_post(atomic_t *val) { return atomic_add(val, -1) - 1; }
    6156
    6257#endif
Note: See TracChangeset for help on using the changeset viewer.