Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 25 of 191) sorted by relevance

12345678

/xnu-11215/tests/bounded_ptr_src/
H A Darith.add_assign.cpp43 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
49 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
55 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
61 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
67 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
85 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
91 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
97 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
103 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
109 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
[all …]
H A Darith.subtract_assign.cpp40 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
46 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
52 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
58 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
64 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
70 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
82 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
88 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
94 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
100 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
[all …]
H A Dunsafe_discard_bounds.cpp42 test_bounded_ptr<QualT> const ptr(array.begin() + 0, array.begin(), array.end()); in tests() local
51 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
60 test_bounded_ptr<QualT> const ptr(array.begin() + 2, array.begin(), array.end()); in tests() local
69 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests() local
78 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests() local
87 test_bounded_ptr<QualT> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() local
96 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
105 test_bounded_ptr<QualT> ptr(array.begin(), array.begin() + 1, array.end()); in tests() local
112 test_bounded_ptr<QualT> const ptr(nullptr, nullptr, nullptr); in tests() local
130 libkern::bounded_ptr<QualT, tracking_policy> ptr(base, base, base + 1); in tests() local
H A Ddiscard_bounds.cpp39 test_bounded_ptr<QualT> const ptr(array.begin() + 0, array.begin(), array.end()); in tests() local
48 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
57 test_bounded_ptr<QualT> const ptr(array.begin() + 2, array.begin(), array.end()); in tests() local
66 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests() local
76 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
89 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() local
99 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end()); in tests() local
111 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests() local
H A Dderef.cpp47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests() local
60 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
73 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests() local
86 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests() local
101 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
115 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() local
130 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end()); in tests() local
147 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests() local
H A Darith.add.cpp33 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests() local
67 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests() local
97 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
105 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests() local
110 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests() local
115 test_bounded_ptr<QualT> const ptr(array.begin() + 3, array.begin(), array.end()); in tests() local
H A Dsubscript.cpp47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests() local
68 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
89 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests() local
110 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests() local
131 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
154 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() local
181 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
212 …libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end() - 1… in tests() local
H A Dcompare.equal.nullptr.cpp39 test_bounded_ptr<QualT> const ptr(&t, &t, &t + 1); in tests() local
46 test_bounded_ptr<QualT> const ptr = nullptr; in tests() local
55 libkern::bounded_ptr<QualT, non_default_policy> const ptr = nullptr; in tests() local
H A Darith.subtract.cpp31 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests() local
65 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests() local
95 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests() local
/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dreset.retain.cpp23 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() local
33 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() local
43 tracked_shared_ptr<T> ptr = nullptr; in tests() local
53 tracked_shared_ptr<T> ptr = nullptr; in tests() local
64 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() local
76 tracked_shared_ptr<T> ptr; in tests() local
H A Dreset.no_retain.cpp23 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() local
33 tracked_shared_ptr<T> ptr = nullptr; in tests() local
43 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() local
53 tracked_shared_ptr<T> ptr = nullptr; in tests() local
63 tracked_shared_ptr<T> ptr; in tests() local
H A Dabi.size_alignment.cpp14 test_shared_ptr<int> ptr; member
18 int* ptr; member
29 test_shared_ptr<int> ptr; member
34 int* ptr; member
45 test_shared_ptr<int> ptr; member
51 int* ptr; member
64 test_shared_ptr<int> ptr; member
71 int* ptr; member
84 test_shared_ptr<int> ptr; member
91 int* ptr; member
[all …]
H A Dctor.default.cpp18 libkern::intrusive_shared_ptr<T, test_policy> ptr; in tests() local
22 libkern::intrusive_shared_ptr<T, test_policy> ptr{}; in tests() local
26 …libkern::intrusive_shared_ptr<T, test_policy> ptr = libkern::intrusive_shared_ptr<T, test_policy>(… in tests() local
30 libkern::intrusive_shared_ptr<T, test_policy> ptr = {}; in tests() local
H A Dctor.nullptr.cpp18 libkern::intrusive_shared_ptr<T, test_policy> ptr = nullptr; in tests() local
22 libkern::intrusive_shared_ptr<T, test_policy> ptr{nullptr}; in tests() local
26 libkern::intrusive_shared_ptr<T, test_policy> ptr(nullptr); in tests() local
H A Dreset.cpp22 tracked_shared_ptr<T> ptr(&obj, libkern::retain); in tests() local
32 tracked_shared_ptr<T> ptr = nullptr; in tests() local
42 tracked_shared_ptr<T> ptr(&obj, libkern::retain); in tests() local
H A Ddtor.cpp19 libkern::intrusive_shared_ptr<T, test_policy> ptr(&obj, libkern::no_retain); variable
31 libkern::intrusive_shared_ptr<T, test_policy> ptr = nullptr; variable
H A Dctor.ptr.retain.cpp21 libkern::intrusive_shared_ptr<TQual, test_policy> ptr(&obj, libkern::retain); in tests() local
27 libkern::intrusive_shared_ptr<TQual, test_policy> ptr{&obj, libkern::retain}; in tests() local
/xnu-11215/osfmk/vm/
H A Dlz4.h107 load2(const void * ptr) in load2()
112 load4(const void * ptr) in load4()
117 load8(const void * ptr) in load8()
122 load16(const void * ptr) in load16()
127 load32(const void * ptr) in load32()
132 load64(const void * ptr) in load64()
139 store2(void * ptr, uint16_t data) in store2()
144 store4(void * ptr, uint32_t data) in store4()
149 store8(void * ptr, uint64_t data) in store8()
154 store16(void * ptr, vector_uchar16 data) in store16()
[all …]
/xnu-11215/tests/bounded_array_ref_src/
H A Dctor.bounded_ptr.cpp34 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests() local
51 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests() local
66 test_bounded_ptr<T> ptr(&array[3], begin, end); in tests() local
75 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests() local
81 test_bounded_ptr<T> ptr = nullptr; in tests() local
87 test_bounded_ptr<T> ptr(end, begin, end); in tests() local
93 test_bounded_ptr<T> ptr(begin, begin, end); in tests() local
H A Dctor.raw_ptr.cpp32 T* ptr = &array[0]; in tests() local
49 T* ptr = &array[0]; in tests() local
64 T* ptr = &array[3]; in tests() local
73 T* ptr = &array[0]; in tests() local
79 T* ptr = nullptr; in tests() local
85 T* ptr = &array[5]; in tests() local
91 T* ptr = &array[0]; in tests() local
/xnu-11215/libkern/libkern/
H A Dmkext.h174 #define MKEXT2_GET_ENTRY_COMPSIZE(ptr) MKEXT_SWAP((ptr)->compressed_size) argument
175 #define MKEXT2_GET_ENTRY_FULLSIZE(ptr) MKEXT_SWAP((ptr)->full_size) argument
176 #define MKEXT2_GET_ENTRY_DATA(ptr) ((ptr)->data) argument
219 #define MKEXT1_ENTRY_CAST(ptr) ((mkext_file *)(ptr)) argument
220 #define MKEXT1_GET_ENTRY_OFFSET(ptr) (MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->offset)) argument
221 #define MKEXT1_GET_ENTRY_COMPSIZE(ptr) (MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->compsize)) argument
222 #define MKEXT1_GET_ENTRY_FULLSIZE(ptr) (MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->realsize)) argument
223 #define MKEXT1_GET_ENTRY_MODTIME(ptr) ((time_t)MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->modifiedsecs)) argument
224 #define MKEXT1_ENTRY_EXISTS(ptr) (MKEXT1_GET_ENTRY_OFFSET(ptr) || \ argument
/xnu-11215/libkern/libkern/c++/
H A DOSSharedPtr.h127 OSStaticPtrCast(OSSharedPtr<From> const& ptr) noexcept in OSStaticPtrCast()
134 OSStaticPtrCast(OSSharedPtr<From>&& ptr) noexcept in OSStaticPtrCast()
141 OSConstPtrCast(OSSharedPtr<From> const& ptr) noexcept in OSConstPtrCast()
148 OSConstPtrCast(OSSharedPtr<From>&& ptr) noexcept in OSConstPtrCast()
/xnu-11215/libkern/
H A Dptrauth_utils.c41 ptrauth_utils_sign_blob_generic(__unused const void * ptr, __unused size_t len_bytes, __unused uint… in ptrauth_utils_sign_blob_generic()
57 ptrauth_utils_auth_blob_generic(const void * ptr, size_t len_bytes, uint64_t data, int flags, ptrau… in ptrauth_utils_auth_blob_generic()
80 ptrauth_utils_auth_blob_generic(__unused const void * ptr, __unused size_t len_bytes, __unused uint… in ptrauth_utils_auth_blob_generic()
/xnu-11215/osfmk/kern/
H A Dsmr.h72 #define smr_unsafe_load(ptr) \ argument
81 #define smr_entered_load(ptr) \ argument
90 #define smr_entered_load_assert(ptr, smr) ({ \ argument
102 #define smr_entered_load_acquire(ptr) \ argument
135 #define smr_serialized_load(ptr) \ argument
144 #define smr_init_store(ptr, value) \ argument
153 #define smr_clear_store(ptr) \ argument
184 #define smr_serialized_store(ptr, value) \ argument
244 #define smr_serialized_swap(ptr, value) \ argument
255 #define smr_unserialized_load(ptr) \ argument
[all …]
/xnu-11215/iokit/IOKit/
H A DIOLib.h91 #define IOKIT_TYPE_IS_COMPATIBLE_PTR(ptr, type) \ argument
95 #define IOKIT_TYPE_ASSERT_COMPATIBLE_POINTER(ptr, type) \ argument
325 #define IODeleteData(ptr, type, count) ({ \ argument
437 #define IODelete_3(ptr, e_ty, count) ({ \ argument
452 #define IODelete_3(ptr, e_ty, count) \ argument
455 #define IODelete_4(ptr, h_ty, e_ty, count) \ argument
458 #define IOSafeDeleteNULL_3(ptr, e_ty, count) ({ \ argument
463 #define IOSafeDeleteNULL_4(ptr, h_ty, e_ty, count) ({ \ argument
753 #define IOFREETYPE_ASSERT_COMPATIBLE_POINTER(ptr, type) \ argument
758 #define IOFREETYPE_ASSERT_COMPATIBLE_POINTER(ptr, type) do {} while (0) argument
[all …]

12345678