| # Where meta contains a string of variants to generate. |
| # Upper-case implies _{acquire,release,relaxed} variants. |
| # * B/b - bool: returns bool |
| # * v - void: returns void |
| # * I/i - int: returns base type |
| # * R - return: returns base type (has _return variants) |
| # * F/f - fetch: returns base type (has fetch_ variants) |
| # * l - load: returns base type (has _acquire order variant) |
| # * s - store: returns void (has _release order variant) |
| # Where args contains list of type[:name], where type is: |
| # * cv - const pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t) |
| # * v - pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t) |
| # * i - base type (int/s64/long) |
| # * p - pointer to base type (int/s64/long) |
| try_cmpxchg B v p:old i:new |