Lines Matching refs:old_value
274 kmp_int8 old_value, new_value; in __kmp_test_then_or8() local
276 old_value = TCR_1(*p); in __kmp_test_then_or8()
277 new_value = old_value | d; in __kmp_test_then_or8()
279 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_or8()
281 old_value = TCR_1(*p); in __kmp_test_then_or8()
282 new_value = old_value | d; in __kmp_test_then_or8()
284 return old_value; in __kmp_test_then_or8()
288 kmp_int8 old_value, new_value; in __kmp_test_then_and8() local
290 old_value = TCR_1(*p); in __kmp_test_then_and8()
291 new_value = old_value & d; in __kmp_test_then_and8()
293 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_and8()
295 old_value = TCR_1(*p); in __kmp_test_then_and8()
296 new_value = old_value & d; in __kmp_test_then_and8()
298 return old_value; in __kmp_test_then_and8()
302 kmp_uint32 old_value, new_value; in __kmp_test_then_or32() local
304 old_value = TCR_4(*p); in __kmp_test_then_or32()
305 new_value = old_value | d; in __kmp_test_then_or32()
307 while (!KMP_COMPARE_AND_STORE_REL32(p, old_value, new_value)) { in __kmp_test_then_or32()
309 old_value = TCR_4(*p); in __kmp_test_then_or32()
310 new_value = old_value | d; in __kmp_test_then_or32()
312 return old_value; in __kmp_test_then_or32()
316 kmp_uint32 old_value, new_value; in __kmp_test_then_and32() local
318 old_value = TCR_4(*p); in __kmp_test_then_and32()
319 new_value = old_value & d; in __kmp_test_then_and32()
321 while (!KMP_COMPARE_AND_STORE_REL32(p, old_value, new_value)) { in __kmp_test_then_and32()
323 old_value = TCR_4(*p); in __kmp_test_then_and32()
324 new_value = old_value & d; in __kmp_test_then_and32()
326 return old_value; in __kmp_test_then_and32()
331 kmp_int8 old_value, new_value; in __kmp_test_then_add8() local
333 old_value = TCR_1(*p); in __kmp_test_then_add8()
334 new_value = old_value + d; in __kmp_test_then_add8()
336 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_add8()
338 old_value = TCR_1(*p); in __kmp_test_then_add8()
339 new_value = old_value + d; in __kmp_test_then_add8()
341 return old_value; in __kmp_test_then_add8()
345 kmp_int64 old_value, new_value; in __kmp_test_then_add64() local
347 old_value = TCR_8(*p); in __kmp_test_then_add64()
348 new_value = old_value + d; in __kmp_test_then_add64()
350 while (!KMP_COMPARE_AND_STORE_REL64(p, old_value, new_value)) { in __kmp_test_then_add64()
352 old_value = TCR_8(*p); in __kmp_test_then_add64()
353 new_value = old_value + d; in __kmp_test_then_add64()
355 return old_value; in __kmp_test_then_add64()
360 kmp_uint64 old_value, new_value; in __kmp_test_then_or64() local
362 old_value = TCR_8(*p); in __kmp_test_then_or64()
363 new_value = old_value | d; in __kmp_test_then_or64()
364 while (!KMP_COMPARE_AND_STORE_REL64(p, old_value, new_value)) { in __kmp_test_then_or64()
366 old_value = TCR_8(*p); in __kmp_test_then_or64()
367 new_value = old_value | d; in __kmp_test_then_or64()
369 return old_value; in __kmp_test_then_or64()
373 kmp_uint64 old_value, new_value; in __kmp_test_then_and64() local
375 old_value = TCR_8(*p); in __kmp_test_then_and64()
376 new_value = old_value & d; in __kmp_test_then_and64()
377 while (!KMP_COMPARE_AND_STORE_REL64(p, old_value, new_value)) { in __kmp_test_then_and64()
379 old_value = TCR_8(*p); in __kmp_test_then_and64()
380 new_value = old_value & d; in __kmp_test_then_and64()
382 return old_value; in __kmp_test_then_and64()
1337 int old_value = KMP_ATOMIC_LD_RLX(&th->th.th_suspend_init_count); in __kmp_suspend_initialize_thread() local
1340 if (old_value == new_value) in __kmp_suspend_initialize_thread()
1343 if (old_value == -1 || !__kmp_atomic_compare_store( in __kmp_suspend_initialize_thread()
1344 &th->th.th_suspend_init_count, old_value, -1)) { in __kmp_suspend_initialize_thread()