Lines Matching defs:expected
153 __atomic_compare_exchange_##N(uintN_t *mem, uintN_t *expected, \
159 if (*mem == *expected) { \
163 *expected = *mem; \
258 uint32_t expected, old, temp, ras_start; \
260 expected = *pexpected; \
271 "\tcmp %0, %3\n" /* Compare to expected value. */\
281 : "r" (expected), "r" (desired), "m" (*mem), \
283 if (old == expected) { \
491 __sync_val_compare_and_swap_##N##_c(uintN_t *mem, uintN_t expected, \
500 put_##N(&expected32, mem, expected); \
512 "\tcmp %2, %4\n" /* Compare to expected value. */\
623 __sync_val_compare_and_swap_4_c(uint32_t *mem, uint32_t expected,
632 "\tcmp %0, %3\n" /* Compare to expected value. */
639 : "r" (expected), "r" (desired), "m" (*mem));
706 __sync_val_compare_and_swap_##N(uintN_t *mem, uintN_t expected, \
713 if (*mem == expected) \
786 __sync_val_compare_and_swap_##N##_c(uintN_t *mem, uintN_t expected, \
801 "\tcmp %0, %3\n" /* Compare to expected value. */\
811 : "r" (expected), "r" (desired), "m" (*mem), \