Ignore:
Timestamp:
2010-02-20T20:35:45Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7af8c0e, c2efbb4
Parents:
228666c
Message:

define atomic_count_t even for abs32le

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/abs32le/include/atomic.h

    r228666c rb03a666  
    4343#include <atomicdflt.h>
    4444
    45 static inline bool cas(atomic_t *val, long ov, long nv)
     45static inline bool cas(atomic_t *val, atomic_count_t ov, atomic_count_t nv)
    4646{
    4747        if (val->count == ov) {
     
    6767}
    6868
    69 static inline long atomic_postinc(atomic_t *val)
     69static inline atomic_count_t atomic_postinc(atomic_t *val)
    7070{
    7171        /* On real hardware both the storing of the previous
     
    7373           atomic action. */
    7474       
    75         long prev = val->count;
     75        atomic_count_t prev = val->count;
    7676       
    7777        val->count++;
     
    7979}
    8080
    81 static inline long atomic_postdec(atomic_t *val)
     81static inline atomic_count_t atomic_postdec(atomic_t *val)
    8282{
    8383        /* On real hardware both the storing of the previous
     
    8585           atomic action. */
    8686       
    87         long prev = val->count;
     87        atomic_count_t prev = val->count;
    8888       
    8989        val->count--;
Note: See TracChangeset for help on using the changeset viewer.