From: Eric Biggers Date: Mon, 12 Nov 2012 19:47:38 +0000 (-0600) Subject: util.h: Remove cas(), cas_bool() (not used yet) X-Git-Tag: v1.1.0~24 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=f5a27d3815fe8e127b42de32bb2eb11abaae5a10 util.h: Remove cas(), cas_bool() (not used yet) --- diff --git a/src/util.h b/src/util.h index 3dfd6030..08a661b8 100644 --- a/src/util.h +++ b/src/util.h @@ -31,26 +31,11 @@ #endif /* __GNUC__ */ #ifdef WITH_FUSE -/* - * Compare-and-swap. Equivalent to the folliwng, but executed - * atomically: - * - * Q tmp = *ptr; - * if (tmp == oval) - * *ptr = nval; - * return tmp; - */ #define atomic_inc(ptr) \ __sync_fetch_and_add(ptr, 1) #define atomic_dec(ptr) \ __sync_sub_and_fetch(ptr, 1) - -#define cas(ptr, oval, nval) \ - __sync_val_compare_and_swap(ptr, oval, nval); - -#define cas_bool(ptr, oval, nval) \ - __sync_bool_compare_and_swap(ptr, oval, nval); #endif #ifndef _NTFS_TYPES_H