Home
last modified time | relevance | path

Searched full:pointer (Results 1 – 25 of 10170) sorted by relevance

12345678910>>...407

/external/golang-protobuf/proto/
Dpointer_unsafe.go46 // A field identifies a field in a struct, accessible from a pointer.
58 // zeroField is a noop when calling pointer.offset.
66 // The pointer type below is for the new table-driven encoder/decoder.
67 // The implementation here uses unsafe.Pointer to create a generic pointer.
70 type pointer struct { struct
71 p unsafe.Pointer
74 // size of pointer
77 // toPointer converts an interface of pointer type to a pointer
79 func toPointer(i *Message) pointer {
80 // Super-tricky - read pointer out of data word of interface value.
[all …]
Dpointer_reflect.go47 // A field identifies a field in a struct, accessible from a pointer.
60 // zeroField is a noop when calling pointer.offset.
66 // The pointer type is for the table-driven decoder.
67 // The implementation here uses a reflect.Value of pointer type to
68 // create a generic pointer. In pointer_unsafe.go we use unsafe
70 type pointer struct { struct
74 // toPointer converts an interface of pointer type to a pointer
76 func toPointer(i *Message) pointer {
77 return pointer{v: reflect.ValueOf(*i)}
80 // toAddrPointer converts an interface to a pointer that points to
[all …]
/external/python/cpython3/Lib/lib2to3/tests/data/
Dinfinite_recursion.py106 ('p', POINTER(c_ubyte)),
113 ('max', POINTER(c_ubyte)),
114 ('q', POINTER(c_ubyte)),
115 ('pp', POINTER(POINTER(c_ubyte))),
128 ('data', POINTER(c_ubyte)),
139 ('data', POINTER(c_ubyte)),
148 ('enc', POINTER(c_ubyte)),
210 ('asn1_string', POINTER(ASN1_STRING)),
211 ('object', POINTER(ASN1_OBJECT)),
212 ('integer', POINTER(ASN1_INTEGER)),
[all …]
/external/python/cpython2/Lib/lib2to3/tests/data/
Dinfinite_recursion.py106 ('p', POINTER(c_ubyte)),
113 ('max', POINTER(c_ubyte)),
114 ('q', POINTER(c_ubyte)),
115 ('pp', POINTER(POINTER(c_ubyte))),
128 ('data', POINTER(c_ubyte)),
139 ('data', POINTER(c_ubyte)),
148 ('enc', POINTER(c_ubyte)),
210 ('asn1_string', POINTER(ASN1_STRING)),
211 ('object', POINTER(ASN1_OBJECT)),
212 ('integer', POINTER(ASN1_INTEGER)),
[all …]
/external/llvm-project/flang/test/Semantics/
Dsymbol15.f902 ! Forward references in pointer initializers and TBP bindings.
12 !DEF: /m/op1 POINTER, PUBLIC ObjectEntity REAL(4)
13 real, pointer :: op1
14 !DEF: /m/op2 POINTER, PUBLIC ObjectEntity REAL(4)
16 real, pointer :: op2 => null()
17 !DEF: /m/op3 POINTER, PUBLIC ObjectEntity REAL(4)
19 real, pointer :: op3 => x
20 !DEF: /m/op4 POINTER, PUBLIC ObjectEntity REAL(4)
22 real, pointer :: op4 => y(1)
24 !DEF: /m/pp1 EXTERNAL, POINTER, PUBLIC (Subroutine) ProcEntity
[all …]
Dassign02.f902 ! Pointer assignment constraints 10.2.2.2
16 !ERROR: 'p1' may not have both the POINTER and TARGET attributes
17 real, pointer :: p1, p3
19 !ERROR: 'sin' may not have both the POINTER and INTRINSIC attributes
20 real, intrinsic, pointer :: sin
22 !ERROR: 'p2' may not have both the POINTER and ALLOCATABLE attributes
23 pointer :: p2
24 !ERROR: 'a' may not have the POINTER attribute because it is a coarray
25 real, pointer :: a(:)[*]
33 real, pointer :: p
[all …]
Dassociated.f9043 integer, pointer :: intPointerVar1
44 integer, pointer :: intPointerVar2
47 procedure(intFunc), pointer :: intprocPointer1
48 procedure(intFunc), pointer :: intprocPointer2
50 procedure(realFunc), pointer :: realprocPointer1
51 procedure(pureFunc), pointer :: pureFuncPointer
55 procedure(subrInt), pointer :: subProcPointer
56 procedure(), pointer :: implicitProcPointer
59 !ERROR: missing mandatory 'pointer=' argument
61 !ERROR: MOLD= argument to NULL() must be a pointer or allocatable
[all …]
/external/swiftshader/src/Shader/
DVertexRoutine.cpp44 Pointer<Byte> cache = task + OFFSET(VertexTask,vertexCache); in generate()
45 Pointer<Byte> vertexCache = cache + OFFSET(VertexCache,vertex); in generate()
46 Pointer<Byte> tagCache = cache + OFFSET(VertexCache,tag); in generate()
48 UInt vertexCount = *Pointer<UInt>(task + OFFSET(VertexTask,vertexCount)); in generate()
49 UInt primitiveNumber = *Pointer<UInt>(task + OFFSET(VertexTask, primitiveStart)); in generate()
52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
56 UInt index = *Pointer<UInt>(batch); in generate()
60 If(*Pointer<UInt>(tagCache + tagIndex) != indexQ) in generate()
62 *Pointer<UInt>(tagCache + tagIndex) = indexQ; in generate()
69 Pointer<Byte> cacheLine0 = vertexCache + tagIndex * UInt((int)sizeof(Vertex)); in generate()
[all …]
DSetupRoutine.cpp40 Function<Int(Pointer<Byte>, Pointer<Byte>, Pointer<Byte>, Pointer<Byte>)> function; in generate()
42 Pointer<Byte> primitive(function.Arg<0>()); in generate()
43 Pointer<Byte> tri(function.Arg<1>()); in generate()
44 Pointer<Byte> polygon(function.Arg<2>()); in generate()
45 Pointer<Byte> data(function.Arg<3>()); in generate()
47 Pointer<Byte> constants = *Pointer<Pointer<Byte> >(data + OFFSET(DrawData,constants)); in generate()
61 Pointer<Byte> v0 = tri + V0; in generate()
62 Pointer<Byte> v1 = tri + V1; in generate()
63 Pointer<Byte> v2 = tri + V2; in generate()
68 X[0] = *Pointer<Int>(v0 + OFFSET(Vertex,X)); in generate()
[all …]
/external/swiftshader/src/Pipeline/
DVertexRoutine.cpp43 Pointer<Byte> cache = task + OFFSET(VertexTask, vertexCache); in generate()
44 Pointer<Byte> vertexCache = cache + OFFSET(VertexCache, vertex); in generate()
45 Pointer<UInt> tagCache = Pointer<UInt>(cache + OFFSET(VertexCache, tag)); in generate()
47 UInt vertexCount = *Pointer<UInt>(task + OFFSET(VertexTask, vertexCount)); in generate()
49 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, constants)); in generate()
70 Pointer<Byte> cacheEntry = vertexCache + cacheIndex * UInt((int)sizeof(Vertex)); in generate()
79 batch = Pointer<UInt>(Pointer<Byte>(batch) + sizeof(uint32_t)); in generate()
87 void VertexRoutine::readInput(Pointer<UInt> &batch) in readInput()
96Pointer<Byte> input = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, input) + sizeof(void *) * (i… in readInput()
97 UInt stride = *Pointer<UInt>(data + OFFSET(DrawData, stride) + sizeof(uint32_t) * (i / 4)); in readInput()
[all …]
DSetupRoutine.cpp39 Pointer<Byte> primitive(function.Arg<0>()); in generate()
40 Pointer<Byte> tri(function.Arg<1>()); in generate()
41 Pointer<Byte> polygon(function.Arg<2>()); in generate()
42 Pointer<Byte> data(function.Arg<3>()); in generate()
44 Pointer<Byte> constants = *Pointer<Pointer<Byte> >(data + OFFSET(DrawData, constants)); in generate()
54 Pointer<Byte> v0 = tri + V0; in generate()
55 Pointer<Byte> v1 = tri + V1; in generate()
56 Pointer<Byte> v2 = tri + V2; in generate()
61 X[0] = *Pointer<Int>(v0 + OFFSET(Vertex, projected.x)); in generate()
62 X[1] = *Pointer<Int>(v1 + OFFSET(Vertex, projected.x)); in generate()
[all …]
/external/wayland-protocols/freedesktop.org/unstable/pointer-constraints/
Dpointer-constraints-unstable-v1.xml28 <description summary="protocol for constraining pointer motions">
30 the motion of a pointer. Possible constraints include confining pointer
33 In order to constrain the pointer, a client must first bind the global
34 interface "wp_pointer_constraints" which, if a compositor supports pointer
50 <description summary="constrain the movement of a pointer">
51 The global interface exposing pointer constraining functionality. It
52 exposes two requests: lock_pointer for locking the pointer to its
53 position, and confine_pointer for locking the pointer to a region.
72 summary="pointer constraint already requested on that surface"/>
82 <description summary="the pointer constraint is defunct once deactivated">
[all …]
/external/llvm-project/clang/test/Analysis/
Dsmart-ptr-text-output.cpp19 std::unique_ptr<A> P; // expected-note {{Default constructed smart pointer 'P' is null}} in derefAfterDefaultCtr()
20 P->foo(); // expected-warning {{Dereference of null smart pointer 'P' [alpha.cplusplus.SmartPtr]}} in derefAfterDefaultCtr()
21 // expected-note@-1{{Dereference of null smart pointer 'P'}} in derefAfterDefaultCtr()
25 A *NullInnerPtr = nullptr; // expected-note {{'NullInnerPtr' initialized to a null pointer value}} in derefAfterCtrWithNull()
26 …std::unique_ptr<A> P(NullInnerPtr); // expected-note {{Smart pointer 'P' is constructed using a nu… in derefAfterCtrWithNull()
27 *P; // expected-warning {{Dereference of null smart pointer 'P' [alpha.cplusplus.SmartPtr]}} in derefAfterCtrWithNull()
28 // expected-note@-1{{Dereference of null smart pointer 'P'}} in derefAfterCtrWithNull()
32 A *NullInnerPtr = nullptr; // expected-note {{'NullInnerPtr' initialized to a null pointer value}} in derefAfterCtrWithNullVariable()
33 …std::unique_ptr<A> P(NullInnerPtr); // expected-note {{Smart pointer 'P' is constructed using a nu… in derefAfterCtrWithNullVariable()
34 P->foo(); // expected-warning {{Dereference of null smart pointer 'P' [alpha.cplusplus.SmartPtr]}} in derefAfterCtrWithNullVariable()
[all …]
Dinner-pointer.cpp35 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char()
36 d = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char()
46 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
47 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
49 consume(d); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
50 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
58 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char_data_non_const()
62 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const()
63 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const()
70 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::wstring' obtained here}} in deref_after_scope_wchar_t()
[all …]
/external/swiftshader/src/Renderer/
DBlitter.cpp224 bool Blitter::read(Float4 &c, Pointer<Byte> element, const State &state) in read()
231 c.xyz = Float(Int(*Pointer<Byte>(element))); in read()
235 c.w = Float(Int(*Pointer<Byte>(element))); in read()
239 c.x = Float(Int(*Pointer<SByte>(element))); in read()
244 c.x = Float(Int(*Pointer<Byte>(element))); in read()
248 c.x = Float(Int(*Pointer<Short>(element))); in read()
252 c.x = Float(Int(*Pointer<UShort>(element))); in read()
256 c.x = Float(*Pointer<Int>(element)); in read()
260 c.x = Float(*Pointer<UInt>(element)); in read()
264 c = Float4(*Pointer<Byte4>(element)).zyxw; in read()
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dwarn-bad-memaccess.cpp35 // expected-warning {{destination for this 'memset' call is a pointer to dynamic class}} \ in test_warn()
36 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
38 // expected-warning {{destination for this 'memset' call is a pointer to dynamic class}} \ in test_warn()
39 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
42 // expected-warning {{destination for this 'memset' call is a pointer to dynamic class}} \ in test_warn()
43 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
46 …ted-warning{{destination for this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointe… in test_warn()
47 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
49 … expected-warning{{source of this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointe… in test_warn()
50 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
[all …]
Dwarn-undefined-bool-conversion.cpp9 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test1()
12 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test1()
20 …// expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be ass… in foo()
23 …// expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be ass… in foo()
29 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in bar()
32 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in bar()
52 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
54 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
56 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
59 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
[all …]
Dnullability.cpp15 // Nullability applies to all pointer types.
18 …xpected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'nullptr_t'}}
28 …; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'int'}}
29 …// expected-error@-1{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'null…
41 …xpected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull<…
42 …xpected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull2…
43 …xpected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull2…
48 …xpected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull<…
77 …xpected-warning{{implicit conversion from nullable pointer 'void * _Nullable' to non-nullable poin… in AssignAndInitNonNull()
78 …xpected-warning{{implicit conversion from nullable pointer 'void * _Nullable' to non-nullable poin… in AssignAndInitNonNull()
[all …]
/external/clang/test/SemaCXX/
Dwarn-undefined-bool-conversion.cpp9 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test1()
12 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test1()
20 …// expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be ass… in foo()
23 …// expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be ass… in foo()
29 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in bar()
32 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in bar()
52 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
54 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
56 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
59 …ning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer in test()
[all …]
Dwarn-bad-memaccess.cpp34 // expected-warning {{destination for this 'memset' call is a pointer to dynamic class}} \ in test_warn()
35 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
37 // expected-warning {{destination for this 'memset' call is a pointer to dynamic class}} \ in test_warn()
38 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
41 // expected-warning {{destination for this 'memset' call is a pointer to dynamic class}} \ in test_warn()
42 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
45 …ted-warning{{destination for this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointe… in test_warn()
46 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
48 … expected-warning{{source of this 'memmove' call is a pointer to dynamic class 'X1'; vtable pointe… in test_warn()
49 // expected-note {{explicitly cast the pointer to silence this warning}} in test_warn()
[all …]
/external/deqp/scripts/opengl/
Dgen_call_log_wrapper.py35 def pointer (size): function
90 "glDeleteBuffers": LogSpec({1: pointer(size = "n")}),
91 "glDeleteFramebuffers": LogSpec({1: pointer(size = "n")}),
92 "glDeleteQueries": LogSpec({1: pointer(size = "n")}),
93 "glDeleteRenderbuffers": LogSpec({1: pointer(size = "n")}),
94 "glDeleteBuffers": LogSpec({1: pointer(size = "n")}),
95 "glDeleteTextures": LogSpec({1: pointer(size = "n")}),
96 "glDeleteVertexArrays": LogSpec({1: pointer(size = "n")}),
97 "glDeleteProgramPipelines": LogSpec({1: pointer(size = "n")}),
124 "glGenBuffers": LogSpec({}, argOutPrints = {1: pointer(size = "n")}),
[all …]
/external/llvm-project/clang/test/SemaObjCXX/Inputs/
Dnullability-pragmas-1.h11 void f1(int *x); // expected-warning{{pointer is missing a nullability type specifier}}
12 // expected-note@-1{{insert '_Nullable' if the pointer may be null}}
13 // expected-note@-2{{insert '_Nonnull' if the pointer should never be null}}
43 void f18(A **); // expected-warning 2{{pointer is missing a nullability type specifier}}
44 // expected-note@-1 2 {{insert '_Nullable' if the pointer may be null}}
45 // expected-note@-2 2 {{insert '_Nonnull' if the pointer should never be null}}
46 void f19(CFErrorRefPtr error); // expected-warning{{pointer is missing a nullability type specifier…
47 // expected-note@-1{{insert '_Nullable' if the pointer may be null}}
48 // expected-note@-2{{insert '_Nonnull' if the pointer should never be null}}
51 void g2(int (^ *bp)(int, int)); // expected-warning{{block pointer is missing a nullability type sp…
[all …]
/external/swiftshader/src/Main/
DFrameBuffer.cpp171 Function<Void(Pointer<Byte>, Pointer<Byte>, Pointer<Byte>)> function; in copyRoutine()
173 Pointer<Byte> dst(function.Arg<0>()); in copyRoutine()
174 Pointer<Byte> src(function.Arg<1>()); in copyRoutine()
175 Pointer<Byte> cursor(function.Arg<2>()); in copyRoutine()
179 Pointer<Byte> d = dst + y * dStride; in copyRoutine()
180 Pointer<Byte> s = src + y * sStride; in copyRoutine()
197 *Pointer<Int4>(d, 1) = *Pointer<Int4>(s, sStride % 16 ? 1 : 16); in copyRoutine()
207 Int4 bgra = *Pointer<Int4>(s, sStride % 16 ? 1 : 16); in copyRoutine()
209 *Pointer<Int4>(d, 1) = ((bgra & Int4(0x00FF0000)) >> 16) | in copyRoutine()
220 Short4 c0 = As<UShort4>(Swizzle(*Pointer<Short4>(s + 0), 0x2103)) >> 8; in copyRoutine()
[all …]
/external/llvm-project/clang/lib/AST/Interp/
DPointer.h1 //===--- Pointer.h - Types for the constexpr VM -----------------*- C++ -*-===//
9 // Defines the classes responsible for pointer tracking.
31 class Pointer; variable
35 /// A pointer to a memory block, live or dead.
39 class Pointer {
45 Pointer() {} in Pointer() function
46 Pointer(Block *B);
47 Pointer(const Pointer &P);
48 Pointer(Pointer &&P);
49 ~Pointer();
[all …]
/external/clang/test/OpenMP/
Dtarget_data_use_device_ptr_messages.cpp24 …xpected-note {{to match this '('}} expected-error {{expected pointer or reference to pointer in 'u… in func()
26 …t data map(i) use_device_ptr(i) // expected-error {{expected pointer or reference to pointer in 'u… in func()
28 …t data map(i) use_device_ptr(j) // expected-error {{expected pointer or reference to pointer in 'u… in func()
34 …t data map(i) use_device_ptr(aa) // expected-error{{expected pointer or reference to pointer in 'u… in func()
36 …et data map(i) use_device_ptr(e) // expected-error{{expected pointer or reference to pointer in 'u… in func()
38 …et data map(i) use_device_ptr(g) // expected-error{{expected pointer or reference to pointer in 'u… in func()
40 …a map(i) use_device_ptr(k,i,j) // expected-error2 {{expected pointer or reference to pointer in 'u… in func()
42 …et data map(i) use_device_ptr(d) // expected-error{{expected pointer or reference to pointer in 'u… in func()
44 …t data map(i) use_device_ptr(da) // expected-error{{expected pointer or reference to pointer in 'u… in func()
140 …expected-note {{to match this '('}} expected-error{{expected pointer or reference to pointer in 'u… in tmain()
[all …]

12345678910>>...407