Lines Matching defs:cmp
1123 dtrace_cas32(uint32_t *target, uint32_t cmp, uint32_t new)
1125 if (OSCompareAndSwap( cmp, new, (unsigned long *)target ))
1126 return cmp;
1128 return ~cmp; /* Must return something *other* than cmp */
1132 dtrace_casptr(void *target, void *cmp, void *new)
1137 if (OSCompareAndSwap( (uint32_t)cmp, (uint32_t)new, (unsigned long *)target ))
1138 return cmp;
1140 return (void *)(~(uintptr_t)cmp); /* Must return something *other* than cmp */