Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlgc.c59 #define makewhite(g,x) \ argument
60 (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g)))
75 #define markvalue(g,o) { checkconsistency(o); \ argument
76 if (valiswhite(o)) reallymarkobject(g,gcvalue(o)); }
78 #define markobject(g,t) { if ((t) && iswhite(obj2gco(t))) \ argument
79 reallymarkobject(g, obj2gco(t)); }
81 static void reallymarkobject (global_State *g, GCObject *o);
121 static int iscleared (global_State *g, const TValue *o) { in iscleared() argument
124 markobject(g, rawtsvalue(o)); /* strings are `values', so are never weak */ in iscleared()
136 global_State *g = G(L); in luaC_barrier_() local
[all …]
Dlstate.c72 global_State g; member
106 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument
107 g->totalbytes -= (debt - g->GCdebt); in luaE_setdebt()
108 g->GCdebt = debt; in luaE_setdebt()
165 static void init_registry (lua_State *L, global_State *g) { in init_registry() argument
169 sethvalue(L, &g->l_registry, registry); in init_registry()
184 global_State *g = G(L); in f_luaopen() local
187 init_registry(L, g); in f_luaopen()
192 g->memerrmsg = luaS_newliteral(L, MEMERRMSG); in f_luaopen()
193 luaS_fix(g->memerrmsg); /* it should never be collected */ in f_luaopen()
[all …]
Dlgc.h47 #define issweepphase(g) \ argument
48 (GCSsweepstring <= (g)->gcstate && (g)->gcstate <= GCSsweep)
50 #define isgenerational(g) ((g)->gckind == KGC_GEN) argument
61 #define keepinvariant(g) (isgenerational(g) || g->gcstate <= GCSatomic) argument
68 #define keepinvariantout(g) \ argument
69 check_exp(g->gcstate == GCSpropagate || !isgenerational(g), \
70 g->gcstate <= GCSatomic)
110 #define otherwhite(g) (g->currentwhite ^ WHITEBITS) argument
112 #define isdead(g,v) isdeadm(otherwhite(g), (v)->gch.marked) argument
119 #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) argument
[all …]
Dlmem.c77 global_State *g = G(L); in luaM_realloc_() local
81 if (nsize > realosize && g->gcrunning) in luaM_realloc_()
84 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_()
88 if (g->gcrunning) { in luaM_realloc_()
90 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_()
96 g->GCdebt = (g->GCdebt + nsize) - realosize; in luaM_realloc_()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dformatfloat_testcases.txt221 -- 'g' code formatting.
224 %.0g 0 -> 0
225 %.1g 0 -> 0
226 %.2g 0 -> 0
227 %.3g 0 -> 0
228 %.4g 0 -> 0
229 %.10g 0 -> 0
230 %.50g 0 -> 0
231 %.100g 0 -> 0
233 -- precision 0 doesn't make a lot of sense for the 'g' code (what does
[all …]
Dtest_gdbm.py12 self.g = None
15 if self.g is not None:
16 self.g.close()
20 self.g = gdbm.open(filename, 'c')
21 self.assertEqual(self.g.keys(), [])
22 self.g['a'] = 'b'
23 self.g['12345678910'] = '019237410982340912840198242'
24 key_set = set(self.g.keys())
26 self.assertTrue(self.g.has_key('a'))
27 key = self.g.firstkey()
[all …]
Dtest_opcodes.py74 g = eval('lambda: None')
75 self.assertNotEqual(f, g)
78 g = eval('lambda a: a')
79 self.assertNotEqual(f, g)
82 g = eval('lambda a=1: a')
83 self.assertNotEqual(f, g)
86 g = eval('lambda: 1')
87 self.assertNotEqual(f, g)
90 g = eval('lambda a: None')
91 self.assertNotEqual(f, g)
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/support/rexpr/
Drexpr.c74 static int regExpr( GraphPtr g );
75 static int andExpr( GraphPtr g );
76 static int expr( GraphPtr g );
77 static int repeatSymbol( GraphPtr g );
181 static int regExpr(GraphPtr g) in regExpr() argument
183 static int regExpr(g) in regExpr()
184 GraphPtr g; in regExpr()
206 *g = g1;
215 static int andExpr(GraphPtr g) in andExpr() argument
217 static int andExpr(g) in andExpr()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dflmodule.c34 #define is_genericobject(g) ((g)->ob_type == &GenericObjecttype) argument
44 knowgeneric(genericobject *g) in knowgeneric() argument
61 Py_INCREF(g); in knowgeneric()
62 PyList_SetItem(allgenerics, i, (PyObject *)g); in knowgeneric()
71 PyList_Append(allgenerics, (PyObject *)g); in knowgeneric()
80 genericobject *g; in findgeneric() local
86 g = (genericobject *)PyList_GetItem(allgenerics, i); in findgeneric()
87 if (g != NULL && g->ob_generic == generic) in findgeneric()
88 return g; in findgeneric()
96 forgetgeneric(genericobject *g) in forgetgeneric() argument
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dfindfp.c103 struct glue *g; in moreglue() local
108 g = (struct glue *)malloc(sizeof(*g) + ALIGNBYTES + n * sizeof(FILE) in moreglue()
110 if (g == NULL) in moreglue()
112 p = (FILE *)ALIGN((g + 1)); in moreglue()
113 g->next = NULL; in moreglue()
114 g->niobs = n; in moreglue()
115 g->iobs = p; in moreglue()
123 return (g); in moreglue()
134 struct glue *g; in __sfp() local
140 for (g = &__sglue;; g = g->next) { in __sfp()
[all …]
Dfwalk.c60 struct glue *g; in _fwalk() local
65 for (g = &__sglue; g != NULL; g = g->next) in _fwalk()
66 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) in _fwalk()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
Dprintgrammar.c14 printgrammar(grammar *g, FILE *fp) in printgrammar() argument
20 printdfas(g, fp); in printgrammar()
21 printlabels(g, fp); in printgrammar()
23 fprintf(fp, " %d,\n", g->g_ndfas); in printgrammar()
25 fprintf(fp, " {%d, labels},\n", g->g_ll.ll_nlabels); in printgrammar()
26 fprintf(fp, " %d\n", g->g_start); in printgrammar()
31 printnonterminals(grammar *g, FILE *fp) in printnonterminals() argument
38 d = g->g_dfa; in printnonterminals()
39 for (i = g->g_ndfas; --i >= 0; d++) in printnonterminals()
62 printstates(grammar *g, FILE *fp) in printstates() argument
[all …]
Dacceler.c24 PyGrammar_AddAccelerators(grammar *g) in PyGrammar_AddAccelerators() argument
28 d = g->g_dfa; in PyGrammar_AddAccelerators()
29 for (i = g->g_ndfas; --i >= 0; d++) in PyGrammar_AddAccelerators()
30 fixdfa(g, d); in PyGrammar_AddAccelerators()
31 g->g_accel = 1; in PyGrammar_AddAccelerators()
35 PyGrammar_RemoveAccelerators(grammar *g) in PyGrammar_RemoveAccelerators() argument
39 g->g_accel = 0; in PyGrammar_RemoveAccelerators()
40 d = g->g_dfa; in PyGrammar_RemoveAccelerators()
41 for (i = g->g_ndfas; --i >= 0; d++) { in PyGrammar_RemoveAccelerators()
54 fixdfa(grammar *g, dfa *d) in fixdfa() argument
[all …]
Dgrammar.c21 grammar *g; in newgrammar() local
23 g = (grammar *)PyObject_MALLOC(sizeof(grammar)); in newgrammar()
24 if (g == NULL) in newgrammar()
26 g->g_ndfas = 0; in newgrammar()
27 g->g_dfa = NULL; in newgrammar()
28 g->g_start = start; in newgrammar()
29 g->g_ll.ll_nlabels = 0; in newgrammar()
30 g->g_ll.ll_label = NULL; in newgrammar()
31 g->g_accel = 0; in newgrammar()
32 return g; in newgrammar()
[all …]
Dfirstsets.c14 addfirstsets(grammar *g) in addfirstsets() argument
21 for (i = 0; i < g->g_ndfas; i++) { in addfirstsets()
22 d = &g->g_dfa[i]; in addfirstsets()
24 calcfirstset(g, d); in addfirstsets()
29 calcfirstset(grammar *g, dfa *d) in calcfirstset() argument
58 l0 = g->g_ll.ll_label; in calcfirstset()
59 nbits = g->g_ll.ll_nlabels; in calcfirstset()
66 sym[0] = findlabel(&g->g_ll, d->d_type, (char *)NULL); in calcfirstset()
84 d1 = PyGrammar_FindDFA(g, type); in calcfirstset()
92 calcfirstset(g, d1); in calcfirstset()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcolorsys.py37 def rgb_to_yiq(r, g, b): argument
38 y = 0.30*r + 0.59*g + 0.11*b
39 i = 0.60*r - 0.28*g - 0.32*b
40 q = 0.21*r - 0.52*g + 0.31*b
45 g = y - 0.276066*i - 0.639810*q
49 if g < 0.0:
50 g = 0.0
55 if g > 1.0:
56 g = 1.0
59 return (r, g, b)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/
DbgenGeneratorGroup.py9 def add(self, g, dupcheck=0): argument
11 if g in self.generators:
12 print 'DUP', g.name
14 g.setprefix(self.prefix)
15 self.generators.append(g)
18 for g in self.generators:
19 g.generate()
23 for g in self.generators:
24 g.reference()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/
Dacceler.c24 PyGrammar_AddAccelerators(grammar *g) in PyGrammar_AddAccelerators() argument
28 d = g->g_dfa; in PyGrammar_AddAccelerators()
29 for (i = g->g_ndfas; --i >= 0; d++) in PyGrammar_AddAccelerators()
30 fixdfa(g, d); in PyGrammar_AddAccelerators()
31 g->g_accel = 1; in PyGrammar_AddAccelerators()
35 PyGrammar_RemoveAccelerators(grammar *g) in PyGrammar_RemoveAccelerators() argument
39 g->g_accel = 0; in PyGrammar_RemoveAccelerators()
40 d = g->g_dfa; in PyGrammar_RemoveAccelerators()
41 for (i = g->g_ndfas; --i >= 0; d++) { in PyGrammar_RemoveAccelerators()
54 fixdfa(grammar *g, dfa *d) in fixdfa() argument
[all …]
Dgrammar.c21 grammar *g; in newgrammar() local
23 g = (grammar *)PyObject_MALLOC(sizeof(grammar)); in newgrammar()
24 if (g == NULL) in newgrammar()
26 g->g_ndfas = 0; in newgrammar()
27 g->g_dfa = NULL; in newgrammar()
28 g->g_start = start; in newgrammar()
29 g->g_ll.ll_nlabels = 0; in newgrammar()
30 g->g_ll.ll_label = NULL; in newgrammar()
31 g->g_accel = 0; in newgrammar()
32 return g; in newgrammar()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dsysconfig.py213 def parse_config_h(fp, g=None): argument
220 if g is None:
221 g = {}
234 g[n] = v
238 g[m.group(1)] = 0
239 return g
248 def parse_makefile(fn, g=None): argument
258 if g is None:
259 g = {}
327 g.update(done)
[all …]
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dioccom.h61 #define _IO(g,n) _IOC(IOC_VOID, (g), (n), 0) argument
62 #define _IOR(g,n,t) _IOC(IOC_OUT, (g), (n), sizeof(t)) argument
63 #define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t)) argument
66 #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) argument
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
Dbuild.c41 #define SetBlk(g, t, approx, first_set_symbol) { \ argument
42 ((Junction *)g.left)->jtype = t; \
43 ((Junction *)g.left)->approx = approx; \
44 ((Junction *)g.left)->pFirstSetSymbol = first_set_symbol; \
45 ((Junction *)g.left)->end = (Junction *) g.right; \
46 ((Junction *)g.right)->jtype = EndBlk;}
96 Graph g; local
146 g.left = (Node *) j1; g.right = (Node *) j2;
150 return g;
169 Graph g; local
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/Include/IndustryStandard/Xen/
DREADME18 s/([^a-zA-Z0-9_]|^)uint8_t([^a-zA-Z0-9_]|$)/\1UINT8\2/g
19 s/([^a-zA-Z0-9_]|^)uint16_t([^a-zA-Z0-9_]|$)/\1UINT16\2/g
20 s/([^a-zA-Z0-9_]|^)uint32_t([^a-zA-Z0-9_]|$)/\1UINT32\2/g
21 s/([^a-zA-Z0-9_]|^)uint64_t([^a-zA-Z0-9_]|$)/\1UINT64\2/g
23 s/([^a-zA-Z0-9_]|^)int8_t([^a-zA-Z0-9_]|$)/\1INT8\2/g
24 s/([^a-zA-Z0-9_]|^)int16_t([^a-zA-Z0-9_]|$)/\1INT16\2/g
25 s/([^a-zA-Z0-9_]|^)int32_t([^a-zA-Z0-9_]|$)/\1INT32\2/g
26 s/([^a-zA-Z0-9_]|^)int64_t([^a-zA-Z0-9_]|$)/\1INT64\2/g
28 s/([^a-zA-Z0-9_]|^)void([^a-zA-Z0-9_]|$)/\1VOID\2/g
29 s/([^a-zA-Z0-9_]|^)unsigned int([^a-zA-Z0-9_]|$)/\1UINT32\2/g
[all …]
/device/google/cuttlefish/guest/hals/camera/
DConverters.h97 #define RGB565(r, g, b) \ argument
98 static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | g) << 5) | r)
100 #define RGB32(r, g, b) \ argument
101 static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | g) << 8) | r)
119 #define RGB565(r, g, b) \ argument
120 static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b)
122 #define RGB32(r, g, b) \ argument
123 static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b)
134 uint8_t g; member
140 uint8_t g;
[all …]
/device/generic/goldfish/camera/
DConverters.h94 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | (g)) << 5) | (r)) argument
96 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | (g)) << 8) | (r)) argument
111 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b) argument
113 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b) argument
122 uint8_t r; uint8_t g; uint8_t b; uint8_t a; member
124 uint8_t a; uint8_t b; uint8_t g; uint8_t r;
147 #define RGB2Y(r, g, b) (uint8_t)(((66 * (r) + 129 * (g) + 25 * (b) + 128) >> 8) + 16) argument
148 #define RGB2U(r, g, b) (uint8_t)(((-38 * (r) - 74 * (g) + 112 * (b) + 128) >> 8) + 128) argument
149 #define RGB2V(r, g, b) (uint8_t)(((112 * (r) - 94 * (g) - 18 * (b) + 128) >> 8) + 128) argument
153 R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, uint8_t* u, uint8_t* v) in R8G8B8ToYUV() argument
[all …]

12345678910>>...17