/external/clang/test/CodeGen/ |
atomic.c | 5 int old; local 13 old = __sync_fetch_and_add(&val, 1); 16 old = __sync_fetch_and_sub(&valc, 2); 19 old = __sync_fetch_and_min(&val, 3); 22 old = __sync_fetch_and_max(&val, 4); 25 old = __sync_fetch_and_umin(&uval, 5u); 28 old = __sync_fetch_and_umax(&uval, 6u); 31 old = __sync_lock_test_and_set(&val, 7); 34 old = __sync_swap(&val, 8); 37 old = __sync_val_compare_and_swap(&val, 4, 1976) [all...] |
/external/icu/icu4c/source/tools/tzcode/ |
ialloc.c | 11 icatalloc(char *const old, const char *const new) 17 if (old == NULL) 20 return old; 21 else oldsize = strlen(old); 22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL)
|
/external/u-boot/tools/ |
fdt_host.h | 19 * @old: Old device tree blog 21 * @old 28 int fdt_remove_unused_strings(const void *old, void *new);
|
/device/google/contexthub/firmware/os/cpu/x86/ |
atomic.c | 21 uint32_t old; local 24 old = *val; 25 } while (!atomicCmpXchg32bits(val, old, old + addend)); 27 return old; 32 uint8_t old; local 35 old = *val; 36 } while (!atomicCmpXchgByte(val, old, old + addend)); 38 return old; [all...] |
atomicBitset.c | 49 uint32_t old, new; local 56 old = *wordPtr; 57 new = old &~ mask; 58 } while (!atomicCmpXchg32bits(wordPtr, old, new)); 67 uint32_t old, new; local 70 old = *wordPtr; 71 if (!(old + 1)) /* no work for words with no clear bits */ 74 pos = __builtin_ctz(~old); /* This will allocate in diff order than ARM. Since we never made any promises on order of bits returned, this is ok */ 75 new = old | (1 << pos); 77 if (atomicCmpXchg32bits(wordPtr, old, new) [all...] |
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/ |
acpi_func.h | 78 uint32_t new, old;
81 old = *lock;
82 new = ((old & ~GL_BIT_MASK) | GL_BIT_OWNED) |
83 ((old >> 1) & GL_BIT_PENDING);
84 } while (atomic_cmpset_acq_int(lock, old, new) == 0);
97 uint32_t new, old;
100 old = *lock;
101 new = old & ~GL_BIT_MASK;
102 } while (atomic_cmpset_rel_int(lock, old, new) == 0);
104 return (old & GL_BIT_PENDING); [all...] |
/external/e2fsprogs/lib/ext2fs/ |
brel.h | 37 errcode_t (*put)(ext2_brel brel, blk64_t old, 43 errcode_t (*get)(ext2_brel brel, blk64_t old, 55 errcode_t (*next)(ext2_brel brel, blk64_t *old, 62 errcode_t (*move)(ext2_brel brel, blk64_t old, blk_t new); 67 errcode_t (*delete)(ext2_brel brel, blk64_t old); 79 #define ext2fs_brel_put(brel, old, ent) ((brel)->put((brel), old, ent)) 80 #define ext2fs_brel_get(brel, old, ent) ((brel)->get((brel), old, ent)) 82 #define ext2fs_brel_next(brel, old, ent) ((brel)->next((brel), old, ent) [all...] |
irel.h | 35 errcode_t (*put)(ext2_irel irel, ext2_ino_t old, 40 errcode_t (*get)(ext2_irel irel, ext2_ino_t old, 46 errcode_t (*get_by_orig)(ext2_irel irel, ext2_ino_t orig, ext2_ino_t *old, 58 errcode_t (*next)(ext2_irel irel, ext2_ino_t *old, 86 errcode_t (*move)(ext2_irel irel, ext2_ino_t old, ext2_ino_t new); 92 errcode_t (*delete)(ext2_irel irel, ext2_ino_t old); 103 #define ext2fs_irel_put(irel, old, ent) ((irel)->put((irel), old, ent)) 104 #define ext2fs_irel_get(irel, old, ent) ((irel)->get((irel), old, ent) [all...] |
brel_ma.c | 30 static errcode_t bma_put(ext2_brel brel, blk64_t old, 32 static errcode_t bma_get(ext2_brel brel, blk64_t old, 35 static errcode_t bma_next(ext2_brel brel, blk64_t *old, 37 static errcode_t bma_move(ext2_brel brel, blk64_t old, blk64_t new); 38 static errcode_t bma_delete(ext2_brel brel, blk64_t old); 105 static errcode_t bma_put(ext2_brel brel, blk64_t old, 111 if (old > ma->max_block) 113 ma->entries[(unsigned)old] = *ent; 117 static errcode_t bma_get(ext2_brel brel, blk64_t old, 123 if (old > ma->max_block [all...] |
/external/clang/test/SemaCXX/ |
constexpr-turing.cpp | 19 constexpr Tape(const Tape &old, bool write) : 20 l(old.l), val(write), r(old.r) {} 21 constexpr Tape(const Tape &old, Dir dir) : 22 l(dir == L ? old.l ? old.l->l : 0 : &old), 23 val(dir == L ? old.l ? old.l->val : false 24 : old.r ? old.r->val : false) [all...] |
/external/u-boot/tools/libfdt/ |
fdt_rw.c | 5 int fdt_remove_unused_strings(const void *old, void *new) 9 int size = fdt_totalsize(old); 16 memcpy(new, old, size); 21 tag = fdt_next_tag(old, offset, &next_offset); 24 old_prop = fdt_get_property_by_offset(old, offset, NULL); 27 str = fdt_string(old, fdt32_to_cpu(old_prop->nameoff));
|
/bionic/libc/arch-arm/bionic/ |
atomics_arm.c | 61 __atomic_cmpxchg(int old, int _new, volatile int *ptr) 64 return __sync_val_compare_and_swap(ptr, old, _new) != old;
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_update_shadow_word_inl.h | 20 old = LoadShadow(sp); 21 if (old.IsZero()) { 30 if (Shadow::Addr0AndSizeAreEqual(cur, old)) { 33 if (Shadow::TidsAreEqual(old, cur)) { 35 if (old.IsRWWeakerOrEqual(kAccessIsWrite, kIsAtomic)) 40 if (HappensBefore(old, thr)) { 41 if (old.IsRWWeakerOrEqual(kAccessIsWrite, kIsAtomic)) 45 if (old.IsBothReadsOrAtomic(kAccessIsWrite, kIsAtomic)) 50 if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) { 52 if (Shadow::TidsAreEqual(old, cur)) [all...] |
/external/libcxx/test/libcxx/depr/exception.unexpected/ |
set_unexpected.pass.cpp | 28 std::unexpected_handler old = std::set_unexpected(f1); local 30 assert(old); 35 (*old)();
|
get_unexpected.pass.cpp | 30 std::unexpected_handler old = std::get_unexpected(); local 32 assert(old); 40 (*old)();
|
/external/libcxx/test/std/depr/exception.unexpected/set.unexpected/ |
set_unexpected.pass.cpp | 28 std::unexpected_handler old = std::set_unexpected(f1); local 30 assert(old); 35 (*old)();
|
get_unexpected.pass.cpp | 29 std::unexpected_handler old = std::get_unexpected(); local 31 assert(old); 39 (*old)();
|
/external/python/cpython3/Include/ |
pyatomic.h | 288 __int64 old; local 293 old = *value; 294 } while(_InterlockedCompareExchange64_HLEAcquire((volatile __int64*)value, old, old) != old); 300 old = *value; 301 } while(_InterlockedCompareExchange64_HLERelease((volatile __int64*)value, old, old) != old); 305 old = *value 323 long old; local 418 uintptr_t old; local 453 int old; local [all...] |
/external/tcpdump/ |
setsignal.c | 72 struct sigaction old, new; local 78 if (sigaction(sig, &new, &old) < 0) 80 return (old.sa_handler);
|
/external/u-boot/arch/nios2/include/asm/bitops/ |
non-atomic.h | 53 * __test_and_set_bit - Set a bit and return its old value 65 unsigned long old = *p; local 67 *p = old | mask; 68 return (old & mask) != 0; 72 * __test_and_clear_bit - Clear a bit and return its old value 84 unsigned long old = *p; local 86 *p = old & ~mask; 87 return (old & mask) != 0; 96 unsigned long old = *p; local 98 *p = old ^ mask [all...] |
/external/grpc-grpc/include/grpc/impl/codegen/ |
atm_windows.h | 97 gpr_atm old; local 99 old = *p; 100 } while (!gpr_atm_no_barrier_cas(p, old, old + delta)); 101 return old; 106 gpr_atm old; local 109 old = *p; 110 } while (old != (gpr_atm)InterlockedCompareExchange64((volatile LONGLONG*)p, 111 (LONGLONG)old + delta, 112 (LONGLONG)old)); [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Softfloat/ |
fpsetmask.c | 56 const fp_except old = float_exception_mask;
58 return old;
|
fpsetround.c | 56 const fp_rnd old = float_rounding_mode;
58 return old;
|
fpsetsticky.c | 56 const fp_except old = float_exception_flags;
58 return old;
|
/external/grpc-grpc/tools/profiling/microbenchmarks/bm_diff/ |
bm_speedup.py | 31 def speedup(new, old, threshold=_DEFAULT_THRESHOLD): 32 if (len(set(new))) == 1 and new == old: return 0 33 s0, p0 = cmp(new, old) 40 sp, pp = cmp(new, scale(old, 1 - pct / 100.0)) 48 sp, pp = cmp(new, scale(old, 1 + pct / 100.0)) 57 old = [2.96608e-06, 3.35076e-06, 3.45384e-06, 3.34407e-06] variable 58 print speedup(new, old, 1e-5) 59 print speedup(old, new, 1e-5)
|