Lines Matching refs:old_value

311   kmp_int8 old_value, new_value;  in __kmp_test_then_or8()  local
313 old_value = TCR_1(*p); in __kmp_test_then_or8()
314 new_value = old_value | d; in __kmp_test_then_or8()
316 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_or8()
318 old_value = TCR_1(*p); in __kmp_test_then_or8()
319 new_value = old_value | d; in __kmp_test_then_or8()
321 return old_value; in __kmp_test_then_or8()
325 kmp_int8 old_value, new_value; in __kmp_test_then_and8() local
327 old_value = TCR_1(*p); in __kmp_test_then_and8()
328 new_value = old_value & d; in __kmp_test_then_and8()
330 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_and8()
332 old_value = TCR_1(*p); in __kmp_test_then_and8()
333 new_value = old_value & d; in __kmp_test_then_and8()
335 return old_value; in __kmp_test_then_and8()
339 kmp_uint32 old_value, new_value; in __kmp_test_then_or32() local
341 old_value = TCR_4(*p); in __kmp_test_then_or32()
342 new_value = old_value | d; in __kmp_test_then_or32()
344 while (!KMP_COMPARE_AND_STORE_REL32(p, old_value, new_value)) { in __kmp_test_then_or32()
346 old_value = TCR_4(*p); in __kmp_test_then_or32()
347 new_value = old_value | d; in __kmp_test_then_or32()
349 return old_value; in __kmp_test_then_or32()
353 kmp_uint32 old_value, new_value; in __kmp_test_then_and32() local
355 old_value = TCR_4(*p); in __kmp_test_then_and32()
356 new_value = old_value & d; in __kmp_test_then_and32()
358 while (!KMP_COMPARE_AND_STORE_REL32(p, old_value, new_value)) { in __kmp_test_then_and32()
360 old_value = TCR_4(*p); in __kmp_test_then_and32()
361 new_value = old_value & d; in __kmp_test_then_and32()
363 return old_value; in __kmp_test_then_and32()
368 kmp_int8 old_value, new_value; in __kmp_test_then_add8() local
370 old_value = TCR_1(*p); in __kmp_test_then_add8()
371 new_value = old_value + d; in __kmp_test_then_add8()
373 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_add8()
375 old_value = TCR_1(*p); in __kmp_test_then_add8()
376 new_value = old_value + d; in __kmp_test_then_add8()
378 return old_value; in __kmp_test_then_add8()
382 kmp_int64 old_value, new_value; in __kmp_test_then_add64() local
384 old_value = TCR_8(*p); in __kmp_test_then_add64()
385 new_value = old_value + d; in __kmp_test_then_add64()
387 while (!KMP_COMPARE_AND_STORE_REL64(p, old_value, new_value)) { in __kmp_test_then_add64()
389 old_value = TCR_8(*p); in __kmp_test_then_add64()
390 new_value = old_value + d; in __kmp_test_then_add64()
392 return old_value; in __kmp_test_then_add64()
397 kmp_uint64 old_value, new_value; in __kmp_test_then_or64() local
399 old_value = TCR_8(*p); in __kmp_test_then_or64()
400 new_value = old_value | d; in __kmp_test_then_or64()
401 while (!KMP_COMPARE_AND_STORE_REL64(p, old_value, new_value)) { in __kmp_test_then_or64()
403 old_value = TCR_8(*p); in __kmp_test_then_or64()
404 new_value = old_value | d; in __kmp_test_then_or64()
406 return old_value; in __kmp_test_then_or64()
410 kmp_uint64 old_value, new_value; in __kmp_test_then_and64() local
412 old_value = TCR_8(*p); in __kmp_test_then_and64()
413 new_value = old_value & d; in __kmp_test_then_and64()
414 while (!KMP_COMPARE_AND_STORE_REL64(p, old_value, new_value)) { in __kmp_test_then_and64()
416 old_value = TCR_8(*p); in __kmp_test_then_and64()
417 new_value = old_value & d; in __kmp_test_then_and64()
419 return old_value; in __kmp_test_then_and64()
1381 int old_value = KMP_ATOMIC_LD_RLX(&th->th.th_suspend_init_count); in __kmp_suspend_initialize_thread() local
1384 if (old_value == new_value) in __kmp_suspend_initialize_thread()
1387 if (old_value == -1 || !__kmp_atomic_compare_store( in __kmp_suspend_initialize_thread()
1388 &th->th.th_suspend_init_count, old_value, -1)) { in __kmp_suspend_initialize_thread()