Back to home page

OSCL-LXR

 
 

    


0001 # name  meta    args...
0002 #
0003 # Where meta contains a string of variants to generate.
0004 # Upper-case implies _{acquire,release,relaxed} variants.
0005 # Valid meta values are:
0006 # * B/b - bool: returns bool
0007 # * v   - void: returns void
0008 # * I/i - int: returns base type
0009 # * R   - return: returns base type (has _return variants)
0010 # * F/f - fetch: returns base type (has fetch_ variants)
0011 # * l   - load: returns base type (has _acquire order variant)
0012 # * s   - store: returns void (has _release order variant)
0013 #
0014 # Where args contains list of type[:name], where type is:
0015 # * cv  - const pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t)
0016 # * v   - pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t)
0017 # * i   - base type (int/s64/long)
0018 # * p   - pointer to base type (int/s64/long)
0019 #
0020 read                    l       cv
0021 set                     s       v       i
0022 add                     vRF     i       v
0023 sub                     vRF     i       v
0024 inc                     vRF     v
0025 dec                     vRF     v
0026 and                     vF      i       v
0027 andnot                  vF      i       v
0028 or                      vF      i       v
0029 xor                     vF      i       v
0030 xchg                    I       v       i
0031 cmpxchg                 I       v       i:old   i:new
0032 try_cmpxchg             B       v       p:old   i:new
0033 sub_and_test            b       i       v
0034 dec_and_test            b       v
0035 inc_and_test            b       v
0036 add_negative            b       i       v
0037 add_unless              fb      v       i:a     i:u
0038 inc_not_zero            b       v
0039 inc_unless_negative     b       v
0040 dec_unless_positive     b       v
0041 dec_if_positive         i       v