view packages/compat/linux/current/include/asm/atomic.h @ 3292:7f8e529b4d82 default tip

Fix FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() so it works with negative offsets.
author vae
date Wed, 29 Apr 2015 23:31:48 +0000
parents 726ecf119e30
children
line wrap: on
line source

#ifndef __ASM_ATOMIC_H__
#define __ASM_ATOMIC_H__

#define atomic_t int
#define atomic_inc(atom) (*atom)++
#define atomic_dec(atom) (*atom)--
#define atomic_read(atom) (*atom)


#endif /* __ASM_ATOMIC_H__ */