Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dget_pred_outside.cpp116 *((uint32*)ptr) = temp; \
117 *((uint32*)(ptr+4)) = temp; \
118 *((uint32*)(ptr+=16)) = temp; \
119 *((uint32*)(ptr+4)) = temp; \
120 *((uint32*)(ptr+=16)) = temp; \
121 *((uint32*)(ptr+4)) = temp; \
122 *((uint32*)(ptr+=16)) = temp; \
123 *((uint32*)(ptr+4)) = temp; \
124 *((uint32*)(ptr+=16)) = temp; \
125 *((uint32*)(ptr+4)) = temp; \
[all …]
Dchv_filter.cpp190 uint8 *ptr, *ptr_e; in CombinedHorzVertFilter() local
221 ptr = rec + (brwidth << 6) + (bc << 3); in CombinedHorzVertFilter()
225 ptr_e = ptr + 8; /* pointer to where the loop ends */ in CombinedHorzVertFilter()
232 jVal0 = *(ptr - width); /* C */ in CombinedHorzVertFilter()
233 jVal1 = *ptr; /* D */ in CombinedHorzVertFilter()
241 *(ptr - width) = (uint8)(jVal0); /* C */ in CombinedHorzVertFilter()
242 *ptr = (uint8)(jVal0); /* D */ in CombinedHorzVertFilter()
244 jVal0 = *(ptr - (width << 1)); /* B */ in CombinedHorzVertFilter()
245 jVal1 = *(ptr + width); /* E */ in CombinedHorzVertFilter()
252 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter()
[all …]
Dderinging_chroma.cpp41 uint8 *ptr; in Deringing_Chroma() local
57 ptr = &Rec_C[h_blk]; in Deringing_Chroma()
58 max_blk = min_blk = *ptr; in Deringing_Chroma()
59 FindMaxMin(ptr, &min_blk, &max_blk, width); in Deringing_Chroma()
70 ptr = &Rec_C[addr_v + h0 - 1]; in Deringing_Chroma()
74 pelu = *(ptr - width); in Deringing_Chroma()
75 pelc = *ptr; in Deringing_Chroma()
76 pell = *(ptr + width); in Deringing_Chroma()
77 ptr++; in Deringing_Chroma()
81 pelu = *(ptr - width); in Deringing_Chroma()
[all …]
Dchvr_filter.cpp39 uint8 *ptr, *ptr_c, *ptr_n; in CombinedHorzVertRingFilter() local
100 ptr = rec + (brwidth << 6) + (bc << 3); in CombinedHorzVertRingFilter()
124 a3_0 = *ptr - *(ptr - w1); in CombinedHorzVertRingFilter()
130 ptr_c = ptr - w3; /* Points to pixel three rows above */ in CombinedHorzVertRingFilter()
131 ptr_n = ptr + w1; /* Points to pixel one row below */ in CombinedHorzVertRingFilter()
167 ++ptr; in CombinedHorzVertRingFilter()
179 a3_0 = *(ptr) - *(ptr - w1); in CombinedHorzVertRingFilter()
187 a3_0 += ((*(ptr - w2) - *(ptr + w1)) << 1) + (a3_0 << 2); in CombinedHorzVertRingFilter()
192 a3_1 = *(ptr - w2) - *(ptr - w3); in CombinedHorzVertRingFilter()
193 a3_1 += ((*(ptr - w4) - *(ptr - w1)) << 1) + (a3_1 << 2); in CombinedHorzVertRingFilter()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Datomicops_internals_arm64_gcc.h52 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
68 [ptr]"+Q" (*ptr) in NoBarrier_CompareAndSwap()
77 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
89 [ptr]"+Q" (*ptr) in NoBarrier_AtomicExchange()
97 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
110 [ptr]"+Q" (*ptr) in NoBarrier_AtomicIncrement()
118 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
121 Atomic32 result = NoBarrier_AtomicIncrement(ptr, increment); in Barrier_AtomicIncrement()
127 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
130 Atomic32 prev = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_mips_gcc.h52 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
67 : "=&r" (prev), "=m" (*ptr), "=&r" (tmp) in NoBarrier_CompareAndSwap()
68 : "r" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap()
75 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
87 : "=&r" (temp), "=&r" (old), "=m" (*ptr) in NoBarrier_AtomicExchange()
88 : "r" (new_value), "m" (*ptr) in NoBarrier_AtomicExchange()
96 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
109 : "=&r" (temp), "=&r" (temp2), "=m" (*ptr) in NoBarrier_AtomicIncrement()
110 : "Ir" (increment), "m" (*ptr) in NoBarrier_AtomicIncrement()
116 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
[all …]
Datomicops_internals_macosx.h42 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
48 const_cast<Atomic32*>(ptr))) { in NoBarrier_CompareAndSwap()
51 prev_value = *ptr; in NoBarrier_CompareAndSwap()
56 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
60 old_value = *ptr; in NoBarrier_AtomicExchange()
62 const_cast<Atomic32*>(ptr))); in NoBarrier_AtomicExchange()
66 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
68 return OSAtomicAdd32(increment, const_cast<Atomic32*>(ptr)); in NoBarrier_AtomicIncrement()
71 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
73 return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr)); in Barrier_AtomicIncrement()
[all …]
Datomicops_internals_tsan.h46 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32 *ptr, in NoBarrier_CompareAndSwap() argument
50 __tsan_atomic32_compare_exchange_strong(ptr, &cmp, new_value, in NoBarrier_CompareAndSwap()
55 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32 *ptr, in NoBarrier_AtomicExchange() argument
57 return __tsan_atomic32_exchange(ptr, new_value, in NoBarrier_AtomicExchange()
61 inline Atomic32 Acquire_AtomicExchange(volatile Atomic32 *ptr, in Acquire_AtomicExchange() argument
63 return __tsan_atomic32_exchange(ptr, new_value, in Acquire_AtomicExchange()
67 inline Atomic32 Release_AtomicExchange(volatile Atomic32 *ptr, in Release_AtomicExchange() argument
69 return __tsan_atomic32_exchange(ptr, new_value, in Release_AtomicExchange()
73 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32 *ptr, in NoBarrier_AtomicIncrement() argument
75 return increment + __tsan_atomic32_fetch_add(ptr, increment, in NoBarrier_AtomicIncrement()
[all …]
Datomicops_internals_solaris.h41 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
44 return (Atomic32)atomic_cas_32((volatile uint32_t*)ptr, (uint32_t)old_value, (uint32_t)new_value); in NoBarrier_CompareAndSwap()
47 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
49 return (Atomic32)atomic_swap_32((volatile uint32_t*)ptr, (uint32_t)new_value); in NoBarrier_AtomicExchange()
52 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
54 return (Atomic32)atomic_add_32_nv((volatile uint32_t*)ptr, (uint32_t)increment); in NoBarrier_AtomicIncrement()
62 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
65 Atomic32 ret = NoBarrier_AtomicIncrement(ptr, increment); in Barrier_AtomicIncrement()
71 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
74 Atomic32 ret = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_x86_msvc.h40 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
42 return Barrier_AtomicIncrement(ptr, increment); in NoBarrier_AtomicIncrement()
49 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
52 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
55 inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr, in Release_CompareAndSwap() argument
58 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
61 inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) { in NoBarrier_Store() argument
62 *ptr = value; in NoBarrier_Store()
65 inline void Acquire_Store(volatile Atomic32* ptr, Atomic32 value) { in Acquire_Store() argument
66 NoBarrier_AtomicExchange(ptr, value); in Acquire_Store()
[all …]
Datomicops_internals_x86_gcc.h55 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
61 : "q" (new_value), "m" (*ptr), "0" (old_value) in NoBarrier_CompareAndSwap()
66 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
70 : "m" (*ptr), "0" (new_value) in NoBarrier_AtomicExchange()
75 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
79 : "+r" (temp), "+m" (*ptr) in NoBarrier_AtomicIncrement()
85 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
89 : "+r" (temp), "+m" (*ptr) in Barrier_AtomicIncrement()
98 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
101 Atomic32 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_power.h38 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
51 : [obj] "b" (ptr), in NoBarrier_CompareAndSwap()
60 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
69 : [obj] "b" (ptr), in NoBarrier_AtomicExchange()
77 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
88 : [obj] "b" (ptr), in NoBarrier_AtomicIncrement()
105 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
119 : [obj] "b" (ptr), in Barrier_AtomicIncrement()
127 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
142 : [obj] "b" (ptr), in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_pnacl.h65 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
68 ((AtomicLocation32)ptr) in NoBarrier_CompareAndSwap()
76 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
78 return ((AtomicLocation32)ptr) in NoBarrier_AtomicExchange()
82 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
85 ((AtomicLocation32)ptr) in NoBarrier_AtomicIncrement()
89 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
91 return increment + ((AtomicLocation32)ptr)->fetch_add(increment); in Barrier_AtomicIncrement()
94 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
97 ((AtomicLocation32)ptr) in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_generic_gcc.h38 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
41 __atomic_compare_exchange_n(ptr, &old_value, new_value, true, in NoBarrier_CompareAndSwap()
46 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
48 return __atomic_exchange_n(ptr, new_value, __ATOMIC_RELAXED); in NoBarrier_AtomicExchange()
51 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
53 return __atomic_add_fetch(ptr, increment, __ATOMIC_RELAXED); in NoBarrier_AtomicIncrement()
56 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
58 return __atomic_add_fetch(ptr, increment, __ATOMIC_SEQ_CST); in Barrier_AtomicIncrement()
61 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
64 __atomic_compare_exchange_n(ptr, &old_value, new_value, true, in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_arm_qnx.h45 volatile Atomic32* ptr) { in QNXCmpxchg() argument
47 _smp_cmpxchg((volatile unsigned *)ptr, in QNXCmpxchg()
53 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
56 Atomic32 prev_value = *ptr; in NoBarrier_CompareAndSwap()
59 const_cast<Atomic32*>(ptr))) { in NoBarrier_CompareAndSwap()
62 prev_value = *ptr; in NoBarrier_CompareAndSwap()
67 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
71 old_value = *ptr; in NoBarrier_AtomicExchange()
73 const_cast<Atomic32*>(ptr))); in NoBarrier_AtomicExchange()
77 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
[all …]
Datomicops_internals_ppc_gcc.h45 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32 *ptr, in NoBarrier_CompareAndSwap() argument
58 : [prev] "=&r"(prev), "+m"(*ptr) in NoBarrier_CompareAndSwap()
59 : [ptr] "r"(ptr), [old_value] "r"(old_value), [new_value] "r"(new_value) in NoBarrier_CompareAndSwap()
65 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32 *ptr, in NoBarrier_AtomicExchange() argument
74 : [old] "=&r"(old), "+m"(*ptr) in NoBarrier_AtomicExchange()
75 : [ptr] "r"(ptr), [new_value] "r"(new_value) in NoBarrier_AtomicExchange()
81 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32 *ptr, in NoBarrier_AtomicIncrement() argument
92 : [increment] "r"(increment), [ptr] "r"(ptr) in NoBarrier_AtomicIncrement()
98 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32 *ptr, in Barrier_AtomicIncrement() argument
101 Atomic32 res = NoBarrier_AtomicIncrement(ptr, increment); in Barrier_AtomicIncrement()
[all …]
Datomicops_internals_arm_gcc.h49 volatile Atomic32* ptr);
58 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
61 Atomic32 prev_value = *ptr; in NoBarrier_CompareAndSwap()
64 const_cast<Atomic32*>(ptr))) { in NoBarrier_CompareAndSwap()
67 prev_value = *ptr; in NoBarrier_CompareAndSwap()
72 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
76 old_value = *ptr; in NoBarrier_AtomicExchange()
78 const_cast<Atomic32*>(ptr))); in NoBarrier_AtomicExchange()
82 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
84 return Barrier_AtomicIncrement(ptr, increment); in NoBarrier_AtomicIncrement()
[all …]
Datomicops_internals_atomicword_compat.h53 inline AtomicWord NoBarrier_CompareAndSwap(volatile AtomicWord* ptr, in NoBarrier_CompareAndSwap() argument
57 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in NoBarrier_CompareAndSwap()
60 inline AtomicWord NoBarrier_AtomicExchange(volatile AtomicWord* ptr, in NoBarrier_AtomicExchange() argument
63 reinterpret_cast<volatile Atomic32*>(ptr), new_value); in NoBarrier_AtomicExchange()
66 inline AtomicWord NoBarrier_AtomicIncrement(volatile AtomicWord* ptr, in NoBarrier_AtomicIncrement() argument
69 reinterpret_cast<volatile Atomic32*>(ptr), increment); in NoBarrier_AtomicIncrement()
72 inline AtomicWord Barrier_AtomicIncrement(volatile AtomicWord* ptr, in Barrier_AtomicIncrement() argument
75 reinterpret_cast<volatile Atomic32*>(ptr), increment); in Barrier_AtomicIncrement()
78 inline AtomicWord Acquire_CompareAndSwap(volatile AtomicWord* ptr, in Acquire_CompareAndSwap() argument
82 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops.h104 Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr,
110 Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, Atomic32 new_value);
114 Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, Atomic32 increment);
116 Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr,
128 Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr,
131 Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr,
139 void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value);
140 void Acquire_Store(volatile Atomic32* ptr, Atomic32 value);
141 void Release_Store(volatile Atomic32* ptr, Atomic32 value);
143 Atomic32 NoBarrier_Load(volatile const Atomic32* ptr);
[all …]
Dshared_ptr.h68 inline bool RefCountDec(volatile Atomic32 *ptr) {
69 return Barrier_AtomicIncrement(ptr, -1) != 0;
72 inline void RefCountInc(volatile Atomic32 *ptr) {
73 NoBarrier_AtomicIncrement(ptr, 1);
113 explicit shared_ptr(T* ptr)
114 : ptr_(ptr),
115 control_block_(ptr != NULL ? new SharedPtrControlBlock : NULL) {
118 MaybeSetupWeakThis(ptr);
124 shared_ptr(const shared_ptr<U>& ptr)
127 Initialize(ptr);
[all …]
Datomicops_internals_x86_msvc.cc52 Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
56 reinterpret_cast<volatile LONG*>(ptr), in NoBarrier_CompareAndSwap()
62 Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
65 reinterpret_cast<volatile LONG*>(ptr), in NoBarrier_AtomicExchange()
70 Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
73 reinterpret_cast<volatile LONG*>(ptr), in Barrier_AtomicIncrement()
81 Atomic64 NoBarrier_CompareAndSwap(volatile Atomic64* ptr, in NoBarrier_CompareAndSwap() argument
85 reinterpret_cast<volatile PVOID*>(ptr), in NoBarrier_CompareAndSwap()
90 Atomic64 NoBarrier_AtomicExchange(volatile Atomic64* ptr, in NoBarrier_AtomicExchange() argument
93 reinterpret_cast<volatile PVOID*>(ptr), in NoBarrier_AtomicExchange()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dpred_lt4.c60 Word16 *ptr, *ptr1; in Pred_lt4() local
76 ptr = ptr2; in Pred_lt4()
78 L_sum = vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
79 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
80 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
81 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
82 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
83 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
84 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
85 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
[all …]
/frameworks/av/media/libstagefright/foundation/
DByteUtils.cpp24 uint16_t U16_AT(const uint8_t *ptr) { in U16_AT() argument
25 return ptr[0] << 8 | ptr[1]; in U16_AT()
28 uint32_t U32_AT(const uint8_t *ptr) { in U32_AT() argument
29 return ptr[0] << 24 | ptr[1] << 16 | ptr[2] << 8 | ptr[3]; in U32_AT()
32 uint64_t U64_AT(const uint8_t *ptr) { in U64_AT() argument
33 return ((uint64_t)U32_AT(ptr)) << 32 | U32_AT(ptr + 4); in U64_AT()
36 uint16_t U16LE_AT(const uint8_t *ptr) { in U16LE_AT() argument
37 return ptr[0] | (ptr[1] << 8); in U16LE_AT()
40 uint32_t U32LE_AT(const uint8_t *ptr) { in U32LE_AT() argument
41 return ptr[3] << 24 | ptr[2] << 16 | ptr[1] << 8 | ptr[0]; in U32LE_AT()
[all …]
/frameworks/base/cmds/statsd/src/external/
DResourceHealthManagerPuller.cpp77 auto ptr = make_shared<LogEvent>(android::util::REMAINING_BATTERY_CAPACITY, in PullInternal() local
79 ptr->write(v.legacy.batteryChargeCounter); in PullInternal()
80 ptr->init(); in PullInternal()
81 data->push_back(ptr); in PullInternal()
83 auto ptr = make_shared<LogEvent>(android::util::FULL_BATTERY_CAPACITY, in PullInternal() local
85 ptr->write(v.legacy.batteryFullCharge); in PullInternal()
86 ptr->init(); in PullInternal()
87 data->push_back(ptr); in PullInternal()
89 auto ptr = make_shared<LogEvent>(android::util::BATTERY_VOLTAGE, wallClockTimestampNs, in PullInternal() local
91 ptr->write(v.legacy.batteryVoltage); in PullInternal()
[all …]
/frameworks/rs/driver/runtime/
Drs_core.c44 extern int32_t __attribute__((overloadable)) rsAtomicCas(volatile int32_t *ptr, int32_t expectedVal… in rsAtomicCas() argument
45 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); in rsAtomicCas()
48 extern uint32_t __attribute__((overloadable)) rsAtomicCas(volatile uint32_t *ptr, uint32_t expected… in rsAtomicCas() argument
49 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); in rsAtomicCas()
52 extern int32_t __attribute__((overloadable)) rsAtomicInc(volatile int32_t *ptr) { in rsAtomicInc() argument
53 return __sync_fetch_and_add(ptr, 1); in rsAtomicInc()
56 extern int32_t __attribute__((overloadable)) rsAtomicInc(volatile uint32_t *ptr) { in rsAtomicInc() argument
57 return __sync_fetch_and_add(ptr, 1); in rsAtomicInc()
60 extern int32_t __attribute__((overloadable)) rsAtomicDec(volatile int32_t *ptr) { in rsAtomicDec() argument
61 return __sync_fetch_and_sub(ptr, 1); in rsAtomicDec()
[all …]

12345678910>>...14