Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

atomic_ix86.h File Reference


Detailed Description

Inline x86 assembly functions imported from Linux kernel headers circa version 2.4.18-41mdk.

Definition in file atomic_ix86.h.

Go to the source code of this file.

Namespaces

namespace  rutz

Classes

struct  rutz::ix86_atomic_int_t
class  rutz::ix86_atomic_int
 Atomic integer class for ix86 CPUs. More...

Defines

#define LOCK   "lock ; "
#define ix86_atomic_read(v)   ((v)->counter)
#define ix86_atomic_set(v, i)   (((v)->counter) = (i))

Functions

static __inline__ void rutz::ix86_atomic_add (int i, ix86_atomic_int_t *v)
static __inline__ void rutz::ix86_atomic_sub (int i, ix86_atomic_int_t *v)
static __inline__ int rutz::ix86_atomic_sub_and_test (int i, ix86_atomic_int_t *v)
static __inline__ void rutz::ix86_atomic_inc (ix86_atomic_int_t *v)
static __inline__ void rutz::ix86_atomic_dec (ix86_atomic_int_t *v)
static __inline__ int rutz::ix86_atomic_dec_and_test (ix86_atomic_int_t *v)
static __inline__ int rutz::ix86_atomic_inc_and_test (ix86_atomic_int_t *v)
static __inline__ int rutz::ix86_atomic_add_return (int i, ix86_atomic_int_t *v)
static __inline__ int rutz::ix86_atomic_sub_return (int i, ix86_atomic_int_t *v)


Define Documentation

#define ix86_atomic_read  )     ((v)->counter)
 

ix86_atomic_read - read atomic variable : pointer of type ix86_atomic_int_t

Atomically reads the value of . Note that the guaranteed useful range of an ix86_atomic_int_t is only 24 bits.

Definition at line 35 of file atomic_ix86.h.

Referenced by rutz::ix86_atomic_int::atomic_get().

#define ix86_atomic_set v,
i   )     (((v)->counter) = (i))
 

ix86_atomic_set - set atomic variable : pointer of type ix86_atomic_int_t : required value

Atomically sets the value of to . Note that the guaranteed useful range of an ix86_atomic_int_t is only 24 bits.

Definition at line 45 of file atomic_ix86.h.

Referenced by rutz::ix86_atomic_int::atomic_set().


Generated on Sun Nov 22 13:44:47 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4