]> wimlib.net Git - wimlib/blobdiff - src/util.h
util.h: Remove cas(), cas_bool() (not used yet)
[wimlib] / src / util.h
index 3dfd6030be08574686a3cbb6b1d8c790775746dc..08a661b8d34572de7e02a37a28406f6335921d24 100644 (file)
 #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