/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | z_Windows_NT-586_util.cpp | 20 kmp_int8 old_value, new_value; in __kmp_test_then_or8() local 22 old_value = TCR_1(*p); in __kmp_test_then_or8() 23 new_value = old_value | d; in __kmp_test_then_or8() 25 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_or8() 27 old_value = TCR_1(*p); in __kmp_test_then_or8() 28 new_value = old_value | d; in __kmp_test_then_or8() 30 return old_value; in __kmp_test_then_or8() 34 kmp_int8 old_value, new_value; in __kmp_test_then_and8() local 36 old_value = TCR_1(*p); in __kmp_test_then_and8() 37 new_value = old_value & d; in __kmp_test_then_and8() [all …]
|
H A D | kmp_atomic.cpp | 792 TYPE old_value, new_value; \ 793 old_value = *(TYPE volatile *)lhs; \ 794 new_value = (TYPE)(old_value OP rhs); \ 796 (kmp_int##BITS *)lhs, *VOLATILE_CAST(kmp_int##BITS *) & old_value, \ 800 old_value = *(TYPE volatile *)lhs; \ 801 new_value = (TYPE)(old_value OP rhs); \ 818 struct _sss old_value, new_value; \ 819 old_value.vvv = (kmp_int##BITS *)&old_value.cmp; \ 821 *old_value.vvv = *(volatile kmp_int##BITS *)lhs; \ 822 new_value.cmp = (TYPE)(old_value.cmp OP rhs); \ [all …]
|
H A D | z_Linux_util.cpp | 327 kmp_int8 old_value, new_value; in __kmp_test_then_or8() local 329 old_value = TCR_1(*p); in __kmp_test_then_or8() 330 new_value = old_value | d; in __kmp_test_then_or8() 332 while (!KMP_COMPARE_AND_STORE_REL8(p, old_value, new_value)) { in __kmp_test_then_or8() 334 old_value = TCR_1(*p); in __kmp_test_then_or8() 335 new_value = old_value | d; in __kmp_test_then_or8() 337 return old_value; in __kmp_test_then_or8() 341 kmp_int8 old_value, new_value; in __kmp_test_then_and8() local 343 old_value = TCR_1(*p); in __kmp_test_then_and8() 344 new_value = old_value & d; in __kmp_test_then_and8() [all …]
|
/freebsd/lib/libc/tests/sys/ |
H A D | mlock_helper.c | 42 vm_max_wired_sysctl(u_long *old_value, u_long *new_value) in vm_max_wired_sysctl() argument 47 if (old_value == NULL) in vm_max_wired_sysctl() 55 ATF_REQUIRE_MSG(sysctlbyname(VM_MAX_WIRED, old_value, &old_len, in vm_max_wired_sysctl() 59 if (old_value != NULL) in vm_max_wired_sysctl() 60 printf("Saved the old value (%lu)\n", *old_value); in vm_max_wired_sysctl() 67 u_long old_value; in set_vm_max_wired() local 76 vm_max_wired_sysctl(&old_value, NULL); in set_vm_max_wired() 78 ATF_REQUIRE_MSG(fprintf(fp, "%lu", old_value) > 0, in set_vm_max_wired()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/BlocksRuntime/ |
H A D | runtime.c | 105 unsigned long int old_value = *(volatile unsigned long int *)where; 106 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { 109 if (OSAtomicCompareAndSwapLong(old_value, old_value+1, (volatile long int *)where)) { 110 return old_value+1; 118 int old_value = *(volatile int *)where; in latching_incr_int() local 119 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { in latching_incr_int() 122 if (OSAtomicCompareAndSwapInt(old_value, old_value+1, (volatile int *)where)) { in latching_incr_int() 123 return old_value+1; in latching_incr_int() 131 unsigned long int old_value = *(volatile int *)where; 132 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_ec.h | 539 uint32_t old_value, 547 uint64_t old_value, 572 uint32_t old_value, 583 uint64_t old_value, 765 uint32_t old_value, 770 uint32_t old_value, in ck_ec32_wait() argument 773 if (ck_ec32_value(ec) != old_value) { in ck_ec32_wait() 777 return ck_ec32_wait_slow(ec, mode->ops, old_value, deadline); in ck_ec32_wait() 782 uint32_t old_value, 791 uint32_t old_value, in ck_ec32_wait_pred() argument [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_ec.c | 46 uint32_t old_value, in ck_ec32_wait_slow() argument 49 return ck_ec32_wait_pred_slow(ec, ops, old_value, in ck_ec32_wait_slow() 65 uint64_t old_value, in ck_ec64_wait_slow() argument 68 return ck_ec64_wait_pred_slow(ec, ops, old_value, in ck_ec64_wait_slow() 316 old_value, unflagged, flagged) \ argument 374 if (ck_ec##W##_value(ec) != old_value) { \ 386 uint32_t old_value, in ck_ec32_wait_pred_slow() argument 392 const uint32_t unflagged_word = old_value; in ck_ec32_wait_pred_slow() 393 const uint32_t flagged_word = old_value | (1UL << 31); in ck_ec32_wait_pred_slow() 395 if (CK_CC_UNLIKELY(ck_ec32_value(ec) != old_value)) { in ck_ec32_wait_pred_slow() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Atomic.cpp | 46 sys::cas_flag old_value) { in CompareAndSwap() argument 49 if (result == old_value) in CompareAndSwap() 53 return __sync_val_compare_and_swap(ptr, old_value, new_value); in CompareAndSwap() 55 return InterlockedCompareExchange(ptr, new_value, old_value); in CompareAndSwap()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | Predicate.h | 96 const T old_value = m_value; in SetValue() local 99 Broadcast(old_value, broadcast_type); in SetValue() 213 void Broadcast(T old_value, PredicateBroadcastType broadcast_type) { in Broadcast() argument 216 ((broadcast_type == eBroadcastOnChange) && old_value != m_value); in Broadcast() 220 __FUNCTION__, old_value, broadcast_type, m_value, broadcast); in Broadcast()
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | dwarf_frame.c | 553 Dwarf_Half old_value; in dwarf_set_frame_rule_table_size() local 555 old_value = dbg->dbg_frame_rule_table_size; in dwarf_set_frame_rule_table_size() 558 return (old_value); in dwarf_set_frame_rule_table_size() 564 Dwarf_Half old_value; in dwarf_set_frame_rule_initial_value() local 566 old_value = dbg->dbg_frame_rule_initial_value; in dwarf_set_frame_rule_initial_value() 569 return (old_value); in dwarf_set_frame_rule_initial_value() 575 Dwarf_Half old_value; in dwarf_set_frame_cfa_value() local 577 old_value = dbg->dbg_frame_cfa_value; in dwarf_set_frame_cfa_value() 580 return (old_value); in dwarf_set_frame_cfa_value() 586 Dwarf_Half old_value; in dwarf_set_frame_same_value() local [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | ThreadPlanTracer.h | 41 bool old_value = m_enabled; in EnableTracing() local 43 if (old_value == false && value == true) in EnableTracing() 45 else if (old_value == true && value == false) in EnableTracing() 48 return old_value; in EnableTracing()
|
/freebsd/sys/kern/ |
H A D | sys_timerfd.c | 380 timerfd_curval(struct timerfd *tfd, struct itimerspec *old_value) in timerfd_curval() argument 385 *old_value = tfd->tfd_time; in timerfd_curval() 389 &old_value->it_value); in timerfd_curval() 509 const struct itimerspec *new_value, struct itimerspec *old_value) in kern_timerfd_settime() argument 536 if (old_value != NULL) in kern_timerfd_settime() 537 timerfd_curval(tfd, old_value); in kern_timerfd_settime() 592 struct itimerspec new_value, old_value; in sys_timerfd_settime() local 598 if (uap->old_value == NULL) { in sys_timerfd_settime() 603 &new_value, &old_value); in sys_timerfd_settime() 605 error = copyout(&old_value, uap->old_value, in sys_timerfd_settime() [all …]
|
/freebsd/sys/ddb/ |
H A D | db_write_cmd.c | 49 db_expr_t old_value; in db_write_cmd() local 73 old_value = db_get_value(addr, size, false); in db_write_cmd() 75 db_printf("\t\t%#8lr\t=\t%#8lr\n", (long)old_value,(long)new_value); in db_write_cmd()
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ |
H A D | zfs_set_common.kshlib | 52 typeset old_value="" 55 [ -n "$prop" ] && old_value=$(get_prop $prop $dataset) 80 if [ "$expect_value" != "" -a "$cur_value" != "$old_value" ]; then 81 err="$err should be unchanged at '$old_value'!"
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | gtest_dirs_test.cc | 20 const char* old_value = getenv(name); in SetEnv() local 21 if (old_value != nullptr) { in SetEnv() 22 saved_value_ = old_value; in SetEnv()
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | ValueObjectCast.cpp | 68 Value old_value(m_value); in UpdateValue() local 78 SetValueDidChange(m_value.GetValueType() != old_value.GetValueType() || in UpdateValue() 79 m_value.GetScalar() != old_value.GetScalar()); in UpdateValue()
|
H A D | ValueObjectVariable.cpp | 166 Value old_value(m_value); in UpdateValue() local 234 SetValueDidChange(value_type != old_value.GetValueType() || in UpdateValue() 235 m_value.GetScalar() != old_value.GetScalar()); in UpdateValue() 244 SetValueDidChange(value_type != old_value.GetValueType() || in UpdateValue() 245 m_value.GetScalar() != old_value.GetScalar()); in UpdateValue()
|
H A D | ValueObjectMemory.cpp | 170 Value old_value(m_value); in UpdateValue() local 208 SetValueDidChange(value_type != old_value.GetValueType() || in UpdateValue() 209 m_value.GetScalar() != old_value.GetScalar()); in UpdateValue()
|
H A D | ValueObjectDynamicValue.cpp | 219 Value old_value(m_value); in UpdateValue() local 270 SetValueDidChange(m_value.GetValueType() != old_value.GetValueType() || in UpdateValue() 271 m_value.GetScalar() != old_value.GetScalar()); in UpdateValue()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | zfs_set_common.kshlib | 56 typeset old_value="" 59 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset) 98 if [[ "$expect_value" != "" && "$cur_value" != "$old_value" ]]; 101 "should equal '$old_value'."
|
/freebsd/sys/compat/linux/ |
H A D | linux_event.c | 641 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_gettime() 659 if (args->old_value == NULL) in linux_timerfd_settime() 663 if (error == 0 && args->old_value != NULL) { in linux_timerfd_settime() 666 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_settime() 686 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_gettime64() 704 if (args->old_value == NULL) in linux_timerfd_settime64() 708 if (error == 0 && args->old_value != NULL) { in linux_timerfd_settime64() 711 error = copyout(&lots, args->old_value, sizeof(lots)); in linux_timerfd_settime64()
|
/freebsd/contrib/ntp/sntp/unity/ |
H A D | unity_fixture.c | 276 void * old_value; member 294 pointer_store[pointer_index].old_value = *pointer; in UnityPointer_Set() 305 pointer_store[pointer_index].old_value; in UnityPointer_UndoAllSets()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors_mac.cpp | 111 TSAN_INTERCEPTOR(bool, f, t old_value, t new_value, t volatile *ptr) { \ in OSATOMIC_INTERCEPTORS_ARITHMETIC() 112 SCOPED_TSAN_INTERCEPTOR(f, old_value, new_value, ptr); \ in OSATOMIC_INTERCEPTORS_ARITHMETIC() 114 (volatile tsan_t *)ptr, (tsan_t *)&old_value, (tsan_t)new_value, \ in OSATOMIC_INTERCEPTORS_ARITHMETIC() 118 TSAN_INTERCEPTOR(bool, f##Barrier, t old_value, t new_value, \ 120 SCOPED_TSAN_INTERCEPTOR(f##Barrier, old_value, new_value, ptr); \ 122 (volatile tsan_t *)ptr, (tsan_t *)&old_value, (tsan_t)new_value, \
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_recv.c | 265 HAL_BOOL old_value = ahp->ah_get_plcp_hdr == 0; in ar9300_set_rx_sel_evm() local 268 return old_value; in ar9300_set_rx_sel_evm() 278 return old_value; in ar9300_set_rx_sel_evm()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Breakpoint/ |
H A D | BreakpointName.h | 121 bool old_value = m_permissions[permission]; in SetPermission() local 124 return old_value; in SetPermission()
|