Skip to content

Instantly share code, notes, and snippets.

@gerdr

gerdr/macros.h Secret

Created August 25, 2013 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerdr/6e8c183fc1039293133a to your computer and use it in GitHub Desktop.
Save gerdr/6e8c183fc1039293133a to your computer and use it in GitHub Desktop.
#define MVM_cas(addr, old, new) AO_fetch_compare_and_swap_full(addr, old, new)
#define MVM_casptr(addr, old, new) ((void *)MVM_cas((AO_t *)(addr), (AO_t)(old), (AO_t)(new)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment