Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 12260) sorted by relevance

12345678910>>...491

/external/ply/ply/example/BASIC/
Dbasparse.py20 def p_program(p): argument
24 if len(p) == 2 and p[1]:
25 p[0] = {}
26 line, stat = p[1]
27 p[0][line] = stat
28 elif len(p) == 3:
29 p[0] = p[1]
30 if not p[0]:
31 p[0] = {}
32 if p[2]:
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/parse/
Dparser.py61 def p_root_1(self, p): argument
63 p[0] = ast.Mojom(None, ast.ImportList(), [])
65 def p_root_2(self, p): argument
67 if p[1].module is not None:
70 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
71 if p[1].import_list.items or p[1].definition_list:
75 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
76 p[0] = p[1]
77 p[0].module = p[2]
79 def p_root_3(self, p): argument
[all …]
/external/libaom/libaom/third_party/fastfeat/
Dfast_9.c8 int fast9_corner_score(const byte* p, const int pixel[], int bstart) in fast9_corner_score() argument
17 int cb = *p + b; in fast9_corner_score()
18 int c_b= *p - b; in fast9_corner_score()
21 if( p[pixel[0]] > cb) in fast9_corner_score()
22 if( p[pixel[1]] > cb) in fast9_corner_score()
23 if( p[pixel[2]] > cb) in fast9_corner_score()
24 if( p[pixel[3]] > cb) in fast9_corner_score()
25 if( p[pixel[4]] > cb) in fast9_corner_score()
26 if( p[pixel[5]] > cb) in fast9_corner_score()
27 if( p[pixel[6]] > cb) in fast9_corner_score()
[all …]
/external/golang-protobuf/proto/
Dpointer_unsafe.go71 p unsafe.Pointer member
83 return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
88 func toAddrPointer(i *interface{}, isptr, deref bool) (p pointer) {
93 p = pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)}
97 p = pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
100 p.p = *(*unsafe.Pointer)(p.p)
102 return p
107 return pointer{p: unsafe.Pointer(v.Pointer())}
112 func (p pointer) offset(f field) pointer {
120 return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))}
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Drefparser.py321 def p_statements(p): argument
326 if len(p) == 2 and p[1]:
327 m.children.append(p[1])
328 elif len(p) > 2 and p[2]:
329 m.children.append(p[2])
331 def p_statement(p): argument
339 p[0] = p[1]
341 def p_empty(p): argument
352 def p_policy_module_stmt(p): argument
355 m.name = p[3]
[all …]
/external/syzkaller/vendor/github.com/golang/protobuf/proto/
Dpointer_unsafe.go71 p unsafe.Pointer member
83 return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
93 return pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)}
97 return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
102 return pointer{p: unsafe.Pointer(v.Pointer())}
107 func (p pointer) offset(f field) pointer {
115 return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))}
118 func (p pointer) isNil() bool {
119 return p.p == nil
122 func (p pointer) toInt64() *int64 {
[all …]
/external/mesa3d/src/mesa/x86/rtasm/
Dx86sse.c21 static void do_realloc( struct x86_function *p ) in do_realloc() argument
23 if (p->size == 0) { in do_realloc()
24 p->size = 1024; in do_realloc()
25 p->store = _mesa_exec_malloc(p->size); in do_realloc()
26 p->csr = p->store; in do_realloc()
29 unsigned used = p->csr - p->store; in do_realloc()
30 unsigned char *tmp = p->store; in do_realloc()
31 p->size *= 2; in do_realloc()
32 p->store = _mesa_exec_malloc(p->size); in do_realloc()
33 memcpy(p->store, tmp, used); in do_realloc()
[all …]
/external/swiftshader/include/Direct3D/
Dd3d8.h191 #define IDirect3D8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) argument
192 #define IDirect3D8_AddRef(p) (p)->lpVtbl->AddRef(p) argument
193 #define IDirect3D8_Release(p) (p)->lpVtbl->Release(p) argument
194 #define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a) argument
195 #define IDirect3D8_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p) argument
196 #define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) argument
197 #define IDirect3D8_GetAdapterModeCount(p,a) (p)->lpVtbl->GetAdapterModeCount(p,a) argument
198 #define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->lpVtbl->EnumAdapterModes(p,a,b,c) argument
199 #define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) argument
200 #define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) argument
[all …]
/external/tcpdump/
Dextract.h26 #define EXTRACT_8BITS(p) (*(p)) argument
27 #define EXTRACT_LE_8BITS(p) (*(p)) argument
132 EXTRACT_16BITS(const void *p) in EXTRACT_16BITS() argument
134 return ((uint16_t)ntohs(((const unaligned_uint16_t *)(p))->val)); in EXTRACT_16BITS()
138 EXTRACT_32BITS(const void *p) in EXTRACT_32BITS() argument
140 return ((uint32_t)ntohl(((const unaligned_uint32_t *)(p))->val)); in EXTRACT_32BITS()
144 EXTRACT_64BITS(const void *p) in EXTRACT_64BITS() argument
146 return ((uint64_t)(((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 0)->val)) << 32 | in EXTRACT_64BITS()
147 ((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 1)->val)) << 0)); in EXTRACT_64BITS()
158 #define EXTRACT_16BITS(p) \ argument
[all …]
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_unaligned.h24 static inline uint16_t __get_unaligned_be16(const uint8_t *p) in __get_unaligned_be16() argument
26 return p[0] << 8 | p[1]; in __get_unaligned_be16()
29 static inline uint32_t __get_unaligned_be32(const uint8_t *p) in __get_unaligned_be32() argument
31 return p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; in __get_unaligned_be32()
35 static inline uint64_t __get_unaligned_be48(const uint8_t *p) in __get_unaligned_be48() argument
37 return (uint64_t)__get_unaligned_be16(p) << 32 | in __get_unaligned_be48()
38 __get_unaligned_be32(p + 2); in __get_unaligned_be48()
41 static inline uint64_t __get_unaligned_be64(const uint8_t *p) in __get_unaligned_be64() argument
43 return (uint64_t)__get_unaligned_be32(p) << 32 | in __get_unaligned_be64()
44 __get_unaligned_be32(p + 4); in __get_unaligned_be64()
[all …]
/external/mesa3d/src/gallium/auxiliary/rtasm/
Drtasm_x86sse.c92 debug_printf( "\n%4x %14s ", p->csr - p->store, foo ); \
140 static void do_realloc( struct x86_function *p ) in do_realloc() argument
142 if (p->store == p->error_overflow) { in do_realloc()
143 p->csr = p->store; in do_realloc()
145 else if (p->size == 0) { in do_realloc()
146 p->size = 1024; in do_realloc()
147 p->store = rtasm_exec_malloc(p->size); in do_realloc()
148 p->csr = p->store; in do_realloc()
151 uintptr_t used = pointer_to_uintptr( p->csr ) - pointer_to_uintptr( p->store ); in do_realloc()
152 unsigned char *tmp = p->store; in do_realloc()
[all …]
/external/mesa3d/src/gallium/tests/trivial/
Dquad-tex.c89 static void init_prog(struct program *p) in init_prog() argument
95 ret = pipe_loader_probe(&p->dev, 1); in init_prog()
99 p->screen = pipe_loader_create_screen(p->dev); in init_prog()
100 assert(p->screen); in init_prog()
103 p->pipe = p->screen->context_create(p->screen, NULL, 0); in init_prog()
104 p->cso = cso_create_context(p->pipe, 0); in init_prog()
107 p->clear_color.f[0] = 0.3; in init_prog()
108 p->clear_color.f[1] = 0.1; in init_prog()
109 p->clear_color.f[2] = 0.3; in init_prog()
110 p->clear_color.f[3] = 1.0; in init_prog()
[all …]
Dtri.c84 static void init_prog(struct program *p) in init_prog() argument
90 ret = pipe_loader_probe(&p->dev, 1); in init_prog()
94 p->screen = pipe_loader_create_screen(p->dev); in init_prog()
95 assert(p->screen); in init_prog()
98 p->pipe = p->screen->context_create(p->screen, NULL, 0); in init_prog()
99 p->cso = cso_create_context(p->pipe, 0); in init_prog()
102 p->clear_color.f[0] = 0.3; in init_prog()
103 p->clear_color.f[1] = 0.1; in init_prog()
104 p->clear_color.f[2] = 0.3; in init_prog()
105 p->clear_color.f[3] = 1.0; in init_prog()
[all …]
/external/libutf/
Drunetypebody.h20 Rune *p; in isspacerune() local
22 p = rbsearch(c, __isspacer, nelem(__isspacer)/2, 2); in isspacerune()
23 if(p && c >= p[0] && c <= p[1]) in isspacerune()
76 Rune *p; in isdigitrune() local
78 p = rbsearch(c, __isdigitr, nelem(__isdigitr)/2, 2); in isdigitrune()
79 if(p && c >= p[0] && c <= p[1]) in isdigitrune()
579 Rune *p; in isalpharune() local
581 p = rbsearch(c, __isalphar, nelem(__isalphar)/2, 2); in isalpharune()
582 if(p && c >= p[0] && c <= p[1]) in isalpharune()
584 p = rbsearch(c, __isalphas, nelem(__isalphas), 1); in isalpharune()
[all …]
/external/lzma/C/
DBcj2Enc.c27 void Bcj2Enc_Init(CBcj2Enc *p) in Bcj2Enc_Init() argument
31 p->state = BCJ2_ENC_STATE_OK; in Bcj2Enc_Init()
32 p->finishMode = BCJ2_ENC_FINISH_MODE_CONTINUE; in Bcj2Enc_Init()
34 p->prevByte = 0; in Bcj2Enc_Init()
36 p->cache = 0; in Bcj2Enc_Init()
37 p->range = 0xFFFFFFFF; in Bcj2Enc_Init()
38 p->low = 0; in Bcj2Enc_Init()
39 p->cacheSize = 1; in Bcj2Enc_Init()
41 p->ip = 0; in Bcj2Enc_Init()
43 p->fileIp = 0; in Bcj2Enc_Init()
[all …]
DLzFindMt.c10 static void MtSync_Construct(CMtSync *p) in MtSync_Construct() argument
12 p->wasCreated = False; in MtSync_Construct()
13 p->csWasInitialized = False; in MtSync_Construct()
14 p->csWasEntered = False; in MtSync_Construct()
15 Thread_Construct(&p->thread); in MtSync_Construct()
16 Event_Construct(&p->canStart); in MtSync_Construct()
17 Event_Construct(&p->wasStarted); in MtSync_Construct()
18 Event_Construct(&p->wasStopped); in MtSync_Construct()
19 Semaphore_Construct(&p->freeSemaphore); in MtSync_Construct()
20 Semaphore_Construct(&p->filledSemaphore); in MtSync_Construct()
[all …]
DLzmaEnc.c43 void LzmaEncProps_Init(CLzmaEncProps *p) in LzmaEncProps_Init() argument
45 p->level = 5; in LzmaEncProps_Init()
46 p->dictSize = p->mc = 0; in LzmaEncProps_Init()
47 p->reduceSize = (UInt64)(Int64)-1; in LzmaEncProps_Init()
48 p->lc = p->lp = p->pb = p->algo = p->fb = p->btMode = p->numHashBytes = p->numThreads = -1; in LzmaEncProps_Init()
49 p->writeEndMark = 0; in LzmaEncProps_Init()
52 void LzmaEncProps_Normalize(CLzmaEncProps *p) in LzmaEncProps_Normalize() argument
54 int level = p->level; in LzmaEncProps_Normalize()
56 p->level = level; in LzmaEncProps_Normalize()
58 …if (p->dictSize == 0) p->dictSize = (level <= 5 ? (1 << (level * 2 + 14)) : (level <= 7 ? (1 << 25… in LzmaEncProps_Normalize()
[all …]
DXzDec.c54 unsigned Xz_ReadVarInt(const Byte *p, size_t maxSize, UInt64 *value) in Xz_ReadVarInt() argument
62 Byte b = p[i]; in Xz_ReadVarInt()
98 CBraState *p = ((CBraState *)pp); in BraState_SetProps() local
100 p->ip = 0; in BraState_SetProps()
101 if (p->methodId == XZ_ID_Delta) in BraState_SetProps()
105 p->delta = (unsigned)props[0] + 1; in BraState_SetProps()
112 switch (p->methodId) in BraState_SetProps()
129 p->ip = v; in BraState_SetProps()
139 CBraState *p = ((CBraState *)pp); in BraState_Init() local
140 p->bufPos = p->bufConv = p->bufTotal = 0; in BraState_Init()
[all …]
DMtDec.c26 void MtProgress_Init(CMtProgress *p, ICompressProgress *progress) in MtProgress_Init() argument
28 p->progress = progress; in MtProgress_Init()
29 p->res = SZ_OK; in MtProgress_Init()
30 p->totalInSize = 0; in MtProgress_Init()
31 p->totalOutSize = 0; in MtProgress_Init()
35 SRes MtProgress_Progress_ST(CMtProgress *p) in MtProgress_Progress_ST() argument
37 if (p->res == SZ_OK && p->progress) in MtProgress_Progress_ST()
38 if (ICompressProgress_Progress(p->progress, p->totalInSize, p->totalOutSize) != SZ_OK) in MtProgress_Progress_ST()
39 p->res = SZ_ERROR_PROGRESS; in MtProgress_Progress_ST()
40 return p->res; in MtProgress_Progress_ST()
[all …]
/external/ply/ply/example/yply/
Dyparse.py17 def p_yacc(p): argument
21 def p_defsection(p): argument
24 p.lexer.lastsection = 1
33 def p_rulesection(p): argument
37 print_code(p[2], 0)
40 def p_definitions(p): argument
45 def p_definition_literal(p): argument
47 print_code(p[1], 0)
50 def p_definition_start(p): argument
52 print("start = '%s'" % p[2])
[all …]
/external/tinyxml/
Dtinyxmlparser.cpp200 const char* p = stamp; in Stamp() local
201 assert( p ); in Stamp()
203 while ( p < now ) in Stamp()
206 const unsigned char* pU = (const unsigned char*)p; in Stamp()
220 ++p; in Stamp()
223 if (*p == '\n') { in Stamp()
224 ++p; in Stamp()
234 ++p; in Stamp()
239 if (*p == '\r') { in Stamp()
240 ++p; in Stamp()
[all …]
/external/sfntly/cpp/src/test/tinyxml/
Dtinyxmlparser.cpp209 const char* p = stamp; in Stamp() local
210 assert( p ); in Stamp()
212 while ( p < now ) in Stamp()
215 const unsigned char* pU = (const unsigned char*)p; in Stamp()
229 ++p; in Stamp()
232 if (*p == '\n') { in Stamp()
233 ++p; in Stamp()
243 ++p; in Stamp()
248 if (*p == '\r') { in Stamp()
249 ++p; in Stamp()
[all …]
/external/syzkaller/pkg/ast/
Dparser.go18 p := &parser{s: newScanner(data, filename, errorHandler)}
21 for p.next(); p.tok != tokEOF; {
22 decl := p.parseTopRecover()
44 if !p.s.Ok() {
93 func (p *parser) parseTopRecover() Node {
99 for p.tok != tokNewLine && p.tok != tokEOF {
100 p.next()
102 p.tryConsume(tokNewLine)
107 decl := p.parseTop()
111 p.consume(tokNewLine)
[all …]
/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_sse.c142 get_const(struct translate_sse *p, unsigned id) in get_const() argument
147 if (p->const_to_reg[id] >= 0) in get_const()
148 return x86_make_reg(file_XMM, p->const_to_reg[id]); in get_const()
151 if (p->reg_to_const[i] < 0) in get_const()
161 if (p->reg_to_const[i] >= 0) in get_const()
162 p->const_to_reg[p->reg_to_const[i]] = -1; in get_const()
164 p->reg_to_const[i] = id; in get_const()
165 p->const_to_reg[id] = i; in get_const()
168 sse_movaps(p->func, reg, in get_const()
169 x86_make_disp(p->machine_EDI, in get_const()
[all …]
/external/ply/ply/example/GardenSnake/
DGardenSnake.py386 def p_file_input_end(p): argument
388 p[0] = ast.Stmt(p[1])
391 def p_file_input(p): argument
396 if isinstance(p[len(p) - 1], basestring):
397 if len(p) == 3:
398 p[0] = p[1]
400 p[0] = [] # p == 2 --> only a blank line
402 if len(p) == 3:
403 p[0] = p[1] + p[2]
405 p[0] = p[1]
[all …]

12345678910>>...491