Home
last modified time | relevance | path

Searched refs:fPtr (Results 1 – 25 of 80) sorted by relevance

1234

/external/skqp/src/core/
DSkMask.h150 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {}
151 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {}
156 ++fPtr;
165 --fPtr;
171 fPtr = SkTAddOffset<const uint8_t>(fPtr, rb);
174 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; }
176 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset);
178 const uint8_t* fPtr;
183 AlphaIter(const uint8_t* ptr) : fPtr(ptr) {}
184 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr) {}
[all …]
DSkAutoMalloc.h26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {}
53 fPtr.reset(size ? sk_malloc_throw(size) : nullptr);
56 return fPtr.get();
62 void* get() { return fPtr.get(); } in get()
63 const void* get() const { return fPtr.get(); } in get()
71 return fPtr.release(); in release()
78 std::unique_ptr<void, WrapFree> fPtr; variable
96 fPtr = fStorage; in SkAutoSMalloc()
105 fPtr = fStorage; in SkAutoSMalloc()
115 if (fPtr != (void*)fStorage) { in ~SkAutoSMalloc()
[all …]
DSkSpan.h18 constexpr SkSpan(T(&t)[N]) : fPtr(t), fSize(N) {} in SkSpan()
19 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan()
20 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} {} in SkSpan()
22 constexpr explicit SkSpan(std::vector<U>& v) : fPtr{v.data()}, fSize{v.size()} {} in SkSpan()
25 constexpr T& operator [] (size_t i) const { return fPtr[i]; }
26 constexpr T* begin() const { return fPtr; } in begin()
27 constexpr T* end() const { return fPtr + fSize; } in end()
28 constexpr const T* cbegin() const { return fPtr; } in cbegin()
29 constexpr const T* cend() const { return fPtr + fSize; } in cend()
30 constexpr T* data() const { return fPtr; } in data()
[all …]
DSkRecords.h91 Optional() : fPtr(nullptr) {} in Optional()
92 Optional(T* ptr) : fPtr(ptr) {} in Optional()
93 Optional(Optional&& o) : fPtr(o.fPtr) { in Optional()
94 o.fPtr = nullptr; in Optional()
96 ~Optional() { if (fPtr) fPtr->~T(); } in ~Optional()
98 ACT_AS_PTR(fPtr)
100 T* fPtr;
107 Adopted(T* ptr) : fPtr(ptr) { SkASSERT(fPtr); }
110 fPtr = source->fPtr;
111 source->fPtr = NULL;
[all …]
DSkPtrRecorder.cpp14 this->decPtr(p->fPtr); in reset()
21 return (char*)a.fPtr < (char*)b.fPtr; in Less()
31 pair.fPtr = ptr; in find()
47 pair.fPtr = ptr; in add()
70 array[index] = p[i].fPtr; in copyToArray()
/external/skia/src/core/
DSkMask.h150 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {}
151 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {}
156 ++fPtr;
165 --fPtr;
171 fPtr = SkTAddOffset<const uint8_t>(fPtr, rb);
174 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; }
176 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset);
178 const uint8_t* fPtr;
183 AlphaIter(const uint8_t* ptr) : fPtr(ptr) {}
184 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr) {}
[all …]
DSkAutoMalloc.h26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {}
53 fPtr.reset(size ? sk_malloc_throw(size) : nullptr);
56 return fPtr.get();
62 void* get() { return fPtr.get(); } in get()
63 const void* get() const { return fPtr.get(); } in get()
71 return fPtr.release(); in release()
78 std::unique_ptr<void, WrapFree> fPtr; variable
96 fPtr = fStorage; in SkAutoSMalloc()
105 fPtr = fStorage; in SkAutoSMalloc()
115 if (fPtr != (void*)fStorage) { in ~SkAutoSMalloc()
[all …]
DSkSpan.h18 constexpr SkSpan(T(&t)[N]) : fPtr(t), fSize(N) {} in SkSpan()
19 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan()
20 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} {} in SkSpan()
22 constexpr explicit SkSpan(std::vector<U>& v) : fPtr{v.data()}, fSize{v.size()} {} in SkSpan()
25 fPtr = that.fPtr;
29 constexpr T& operator [] (size_t i) const { return fPtr[i]; }
30 constexpr T* begin() const { return fPtr; } in begin()
31 constexpr T* end() const { return fPtr + fSize; } in end()
32 constexpr const T* cbegin() const { return fPtr; } in cbegin()
33 constexpr const T* cend() const { return fPtr + fSize; } in cend()
[all …]
DSkRecords.h92 Optional() : fPtr(nullptr) {} in Optional()
93 Optional(T* ptr) : fPtr(ptr) {} in Optional()
94 Optional(Optional&& o) : fPtr(o.fPtr) { in Optional()
95 o.fPtr = nullptr; in Optional()
97 ~Optional() { if (fPtr) fPtr->~T(); } in ~Optional()
99 ACT_AS_PTR(fPtr)
101 T* fPtr;
108 Adopted(T* ptr) : fPtr(ptr) { SkASSERT(fPtr); }
111 fPtr = source->fPtr;
112 source->fPtr = NULL;
[all …]
DSkPtrRecorder.cpp14 this->decPtr(p->fPtr); in reset()
21 return (char*)a.fPtr < (char*)b.fPtr; in Less()
31 pair.fPtr = ptr; in find()
47 pair.fPtr = ptr; in add()
70 array[index] = p[i].fPtr; in copyToArray()
/external/skia/src/utils/win/
DSkTScopedComPtr.h38 T *fPtr;
41 constexpr SkTScopedComPtr() : fPtr(nullptr) {} in SkTScopedComPtr()
42 constexpr SkTScopedComPtr(std::nullptr_t) : fPtr(nullptr) {} in SkTScopedComPtr()
43 explicit SkTScopedComPtr(T *ptr) : fPtr(ptr) {} in SkTScopedComPtr()
44 SkTScopedComPtr(SkTScopedComPtr&& that) : fPtr(that.release()) {} in SkTScopedComPtr()
56 T &operator*() const { SkASSERT(fPtr != nullptr); return *fPtr; }
58 explicit operator bool() const { return fPtr != nullptr; }
60 SkBlockComRef<T> *operator->() const { return static_cast<SkBlockComRef<T>*>(fPtr); }
68 T **operator&() { SkASSERT(fPtr == nullptr); return &fPtr; }
70 T *get() const { return fPtr; } in get()
[all …]
/external/skqp/src/utils/win/
DSkTScopedComPtr.h38 T *fPtr;
41 constexpr SkTScopedComPtr() : fPtr(nullptr) {} in SkTScopedComPtr()
42 constexpr SkTScopedComPtr(std::nullptr_t) : fPtr(nullptr) {} in SkTScopedComPtr()
43 explicit SkTScopedComPtr(T *ptr) : fPtr(ptr) {} in SkTScopedComPtr()
44 SkTScopedComPtr(SkTScopedComPtr&& that) : fPtr(that.release()) {} in SkTScopedComPtr()
56 T &operator*() const { SkASSERT(fPtr != nullptr); return *fPtr; }
58 explicit operator bool() const { return fPtr != nullptr; }
60 SkBlockComRef<T> *operator->() const { return static_cast<SkBlockComRef<T>*>(fPtr); }
68 T **operator&() { SkASSERT(fPtr == nullptr); return &fPtr; }
70 T *get() const { return fPtr; } in get()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Dget_lsp_poly.c48 int32_t *fPtr; in WebRtcIlbcfix_GetLspPoly() local
51 fPtr = f; in WebRtcIlbcfix_GetLspPoly()
53 (*fPtr) = (int32_t)16777216; in WebRtcIlbcfix_GetLspPoly()
54 fPtr++; in WebRtcIlbcfix_GetLspPoly()
56 (*fPtr) = WEBRTC_SPL_MUL((*lspPtr), -1024); in WebRtcIlbcfix_GetLspPoly()
57 fPtr++; in WebRtcIlbcfix_GetLspPoly()
62 (*fPtr) = fPtr[-2]; in WebRtcIlbcfix_GetLspPoly()
67 high = (int16_t)(fPtr[-1] >> 16); in WebRtcIlbcfix_GetLspPoly()
68 low = (int16_t)((fPtr[-1] - ((int32_t)high << 16)) >> 1); in WebRtcIlbcfix_GetLspPoly()
72 (*fPtr) += fPtr[-2]; in WebRtcIlbcfix_GetLspPoly()
[all …]
/external/skia/include/private/
DSkTemplates.h223 explicit SkAutoTMalloc(T* ptr = nullptr) : fPtr(ptr) {} in fPtr() function
227 : fPtr(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr) {} in SkAutoTMalloc()
234 fPtr.reset(count ? (T*)sk_realloc_throw(fPtr.release(), count * sizeof(T)) : nullptr); in realloc()
239 fPtr.reset(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr);
243 T* get() const { return fPtr.get(); } in get()
245 operator T*() { return fPtr.get(); }
247 operator const T*() const { return fPtr.get(); }
249 T& operator[](int index) { return fPtr.get()[index]; }
251 const T& operator[](int index) const { return fPtr.get()[index]; }
258 T* release() { return fPtr.release(); } in release()
[all …]
/external/skqp/include/private/
DSkTemplates.h223 explicit SkAutoTMalloc(T* ptr = nullptr) : fPtr(ptr) {} in fPtr() function
227 : fPtr(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr) {} in SkAutoTMalloc()
234 fPtr.reset(count ? (T*)sk_realloc_throw(fPtr.release(), count * sizeof(T)) : nullptr); in realloc()
239 fPtr.reset(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr);
243 T* get() const { return fPtr.get(); } in get()
245 operator T*() { return fPtr.get(); }
247 operator const T*() const { return fPtr.get(); }
249 T& operator[](int index) { return fPtr.get()[index]; }
251 const T& operator[](int index) const { return fPtr.get()[index]; }
258 T* release() { return fPtr.release(); } in release()
[all …]
/external/clang/test/Analysis/inlining/
Dinline-defensive-checks.m71 int testNilReceiver(Foo* fPtr) {
72 if (fPtr)
74 // On a path where fPtr is nil, mem should be nil.
75 Foo *mem = [fPtr getFooPtr];
79 int suppressNilReceiverRetNullCond(Foo* fPtr) {
81 fPtr = retInputOrNil(fPtr);
82 // On a path where fPtr is nzil, mem should be nil.
83 Foo *mem = [fPtr getFooPtr];
87 int suppressNilReceiverRetNullCondCast(id fPtr) {
89 fPtr = retInputOrNil(fPtr);
[all …]
/external/skia/include/core/
DSkTLazy.h23 explicit SkTLazy(const T* src) : fPtr(src ? new (&fStorage) T(*src) : nullptr) {} in SkTLazy()
55 fPtr = new (&fStorage) T(std::forward<Args>(args)...); in init()
56 return fPtr; in init()
67 *fPtr = src; in set()
69 fPtr = new (&fStorage) T(src); in set()
71 return fPtr; in set()
76 *fPtr = std::move(src); in set()
78 fPtr = new (&fStorage) T(std::move(src)); in set()
80 return fPtr; in set()
88 fPtr->~T(); in reset()
[all …]
DSkRefCnt.h208 constexpr sk_sp() : fPtr(nullptr) {} in sk_sp()
209 constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} in sk_sp()
215 sk_sp(const sk_sp<T>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
218 sk_sp(const sk_sp<U>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
225 sk_sp(sk_sp<T>&& that) : fPtr(that.release()) {} in sk_sp()
228 sk_sp(sk_sp<U>&& that) : fPtr(that.release()) {} in sk_sp()
234 explicit sk_sp(T* obj) : fPtr(obj) {} in sk_sp()
240 SkSafeUnref(fPtr); in ~sk_sp()
241 SkDEBUGCODE(fPtr = nullptr); in ~sk_sp()
287 T* get() const { return fPtr; } in get()
[all …]
/external/skqp/include/core/
DSkTLazy.h23 explicit SkTLazy(const T* src) : fPtr(src ? new (&fStorage) T(*src) : nullptr) {} in SkTLazy()
55 fPtr = new (&fStorage) T(std::forward<Args>(args)...); in init()
56 return fPtr; in init()
67 *fPtr = src; in set()
69 fPtr = new (&fStorage) T(src); in set()
71 return fPtr; in set()
76 *fPtr = std::move(src); in set()
78 fPtr = new (&fStorage) T(std::move(src)); in set()
80 return fPtr; in set()
88 fPtr->~T(); in reset()
[all …]
DSkRefCnt.h208 constexpr sk_sp() : fPtr(nullptr) {} in sk_sp()
209 constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} in sk_sp()
215 sk_sp(const sk_sp<T>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
218 sk_sp(const sk_sp<U>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
225 sk_sp(sk_sp<T>&& that) : fPtr(that.release()) {} in sk_sp()
228 sk_sp(sk_sp<U>&& that) : fPtr(that.release()) {} in sk_sp()
234 explicit sk_sp(T* obj) : fPtr(obj) {} in sk_sp()
240 SkSafeUnref(fPtr); in ~sk_sp()
241 SkDEBUGCODE(fPtr = nullptr); in ~sk_sp()
287 T* get() const { return fPtr; } in get()
[all …]
/external/skqp/tools/
DRegistry.h47 const Registry* fPtr; member
48 const T& operator*() { return SkASSERT(fPtr), fPtr->get(); }
49 void operator++() { if (fPtr) { fPtr = fPtr->next(); } }
50 bool operator!=(const Iterator& other) const { return fPtr != other.fPtr; }
/external/skia/tools/
DRegistry.h47 const Registry* fPtr; member
48 const T& operator*() { return SkASSERT(fPtr), fPtr->get(); }
49 void operator++() { if (fPtr) { fPtr = fPtr->next(); } }
50 bool operator!=(const Iterator& other) const { return fPtr != other.fPtr; }
/external/icu/icu4c/source/i18n/
Dnumber_decimfmtprops.h40 LocalPointer<CurrencyPluralInfo> fPtr;
45 if (!other.fPtr.isNull()) { in CurrencyPluralInfoWrapper()
46 fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr)); in CurrencyPluralInfoWrapper()
51 if (!other.fPtr.isNull()) {
52 fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));
/external/skqp/src/gpu/
DGrVertexWriter.h25 void* fPtr; member
54 memcpy(fPtr, &val, sizeof(T)); in write()
55 fPtr = SkTAddOffset<void>(fPtr, sizeof(T)); in write()
63 memcpy(fPtr, val, N * sizeof(T)); in write()
64 fPtr = SkTAddOffset<void>(fPtr, N * sizeof(T)); in write()
87 fPtr = SkTAddOffset<void>(fPtr, sizeof(T)); in write()
/external/skia/src/gpu/
DGrVertexWriter.h25 void* fPtr; member
54 memcpy(fPtr, &val, sizeof(T)); in write()
55 fPtr = SkTAddOffset<void>(fPtr, sizeof(T)); in write()
63 memcpy(fPtr, val, N * sizeof(T)); in write()
64 fPtr = SkTAddOffset<void>(fPtr, N * sizeof(T)); in write()
87 fPtr = SkTAddOffset<void>(fPtr, sizeof(T)); in write()

1234