Home
last modified time | relevance | path

Searched refs:consts (Results 1 – 25 of 132) sorted by relevance

123456

/external/mesa3d/src/mesa/main/
Dcontext.c452 init_program_limits(struct gl_constants *consts, gl_shader_stage stage, in init_program_limits() argument
536 consts->MaxUniformBlockSize / 4 * in init_program_limits()
552 _mesa_init_constants(struct gl_constants *consts, gl_api api) in _mesa_init_constants() argument
555 assert(consts); in _mesa_init_constants()
558 consts->MaxTextureMbytes = MAX_TEXTURE_MBYTES; in _mesa_init_constants()
559 consts->MaxTextureLevels = MAX_TEXTURE_LEVELS; in _mesa_init_constants()
560 consts->Max3DTextureLevels = MAX_3D_TEXTURE_LEVELS; in _mesa_init_constants()
561 consts->MaxCubeTextureLevels = MAX_CUBE_TEXTURE_LEVELS; in _mesa_init_constants()
562 consts->MaxTextureRectSize = MAX_TEXTURE_RECT_SIZE; in _mesa_init_constants()
563 consts->MaxArrayTextureLayers = MAX_ARRAY_TEXTURE_LAYERS; in _mesa_init_constants()
[all …]
Dversion.c159 _mesa_override_gl_version_contextless(struct gl_constants *consts, in _mesa_override_gl_version_contextless() argument
174 consts->ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT; in _mesa_override_gl_version_contextless()
217 _mesa_override_glsl_version(struct gl_constants *consts) in _mesa_override_glsl_version() argument
228 n = sscanf(version, "%u", &consts->GLSLVersion); in _mesa_override_glsl_version()
240 const struct gl_constants *consts, gl_api api) in compute_version() argument
277 consts->GLSLVersion >= 130 && in compute_version()
278 (consts->MaxSamples >= 4 || consts->FakeSWMSAA) && in compute_version()
297 consts->GLSLVersion >= 140 && in compute_version()
304 consts->Program[MESA_SHADER_VERTEX].MaxTextureImageUnits >= 16); in compute_version()
306 consts->GLSLVersion >= 150 && in compute_version()
[all …]
Dversion.h35 struct gl_constants *consts, gl_api api);
41 _mesa_override_gl_version_contextless(struct gl_constants *consts,
48 _mesa_override_glsl_version(struct gl_constants *consts);
/external/libcups/cups/
Dppd-conflicts.c184 _ppd_cups_uiconsts_t *consts; /* Current constraints */ in cupsResolveConflicts() local
238 for (consts = (_ppd_cups_uiconsts_t *)cupsArrayFirst(active), changed = 0; in cupsResolveConflicts()
239 consts; in cupsResolveConflicts()
240 consts = (_ppd_cups_uiconsts_t *)cupsArrayNext(active)) in cupsResolveConflicts()
242 if (consts->resolver[0]) in cupsResolveConflicts()
248 if (cupsArrayFind(pass, consts->resolver)) in cupsResolveConflicts()
251 if (cupsArrayFind(resolvers, consts->resolver)) in cupsResolveConflicts()
258 consts->resolver)); in cupsResolveConflicts()
263 consts->resolver)) == NULL) in cupsResolveConflicts()
266 consts->resolver)); in cupsResolveConflicts()
[all …]
/external/syzkaller/pkg/compiler/
Dconsts.go57 info.consts[name] = true
60 info.consts[comp.target.SyscallPrefix+n.CallName] = true
74 info.consts[arg.Ident] = true
78 info.consts[arg.Ident2] = true
92 info.consts[attr.Args[0].Ident] = true
101 info.consts[n.Ident] = true
109 consts map[string]bool member
119 consts: make(map[string]bool),
131 Consts: toArray(info.consts),
141 func (comp *compiler) assignSyscallNumbers(consts map[string]uint64) {
[all …]
Dcompiler_test.go38 consts := DeserializeConstsGlob(filepath.Join(path, "*_"+arch+".const"), eh)
39 if consts == nil {
42 prog := Compile(desc, consts, target, eh)
54 consts := map[string]uint64{
89 desc := Compile(astDesc, consts, target, eh)
131 consts := map[string]uint64{
152 Compile(desc, consts, target, em.ErrorHandler)
166 consts := map[string]uint64{"A": 1, "B": 2, "C": 3, "SYS_C": 4}
173 Compile(desc, consts, targets.List["test"]["64"], eh)
/external/mesa3d/src/mesa/state_tracker/
Dst_extensions.c615 struct gl_constants *consts, in st_init_extensions() argument
938 consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL); in st_init_extensions()
940 _mesa_override_glsl_version(consts); in st_init_extensions()
943 options->force_glsl_version <= consts->GLSLVersion) { in st_init_extensions()
944 consts->ForceGLSLVersion = options->force_glsl_version; in st_init_extensions()
947 consts->AllowHigherCompatVersion = options->allow_higher_compat_version; in st_init_extensions()
949 consts->ForceGLSLAbsSqrt = options->force_glsl_abs_sqrt; in st_init_extensions()
951consts->AllowGLSLBuiltinVariableRedeclaration = options->allow_glsl_builtin_variable_redeclaration; in st_init_extensions()
953 consts->dri_config_options_sha1 = options->config_options_sha1; in st_init_extensions()
955consts->AllowGLSLCrossStageInterpolationMismatch = options->allow_glsl_cross_stage_interpolation_m… in st_init_extensions()
[all …]
/external/python/cpython2/Python/
Dpeephole.c37 tuple_of_constants(unsigned char *codestr, Py_ssize_t n, PyObject *consts) in tuple_of_constants() argument
43 assert(PyList_CheckExact(consts)); in tuple_of_constants()
53 len_consts = PyList_GET_SIZE(consts); in tuple_of_constants()
57 constant = PyList_GET_ITEM(consts, arg); in tuple_of_constants()
63 if (PyList_Append(consts, newconst)) { in tuple_of_constants()
88 fold_binops_on_constants(unsigned char *codestr, PyObject *consts) in fold_binops_on_constants() argument
95 assert(PyList_CheckExact(consts)); in fold_binops_on_constants()
100 v = PyList_GET_ITEM(consts, GETARG(codestr, 0)); in fold_binops_on_constants()
101 w = PyList_GET_ITEM(consts, GETARG(codestr, 3)); in fold_binops_on_constants()
175 len_consts = PyList_GET_SIZE(consts); in fold_binops_on_constants()
[all …]
/external/v8/tools/
Dgen-postmortem-metadata.py520 consts = [];
611 def emit_set(out, consts): argument
615 for const in consts:
633 consts = [];
638 consts.append({
643 emit_set(out, consts);
646 consts = [];
657 consts.append({
662 emit_set(out, consts);
/external/pdfium/fxjs/
Dcjs_object.cpp12 const JSConstSpec consts[], in DefineConsts() argument
16 objId, consts[i].pName, in DefineConsts()
17 consts[i].eType == JSConstSpec::Number in DefineConsts()
18 ? pEngine->NewNumber(consts[i].number).As<v8::Value>() in DefineConsts()
19 : pEngine->NewString(consts[i].pStr).As<v8::Value>()); in DefineConsts()
/external/python/cpython2/Lib/test/
Dtest_code.py88 def consts(t): function
102 print "consts:", tuple(consts(co.co_consts))
121 def find_const(self, consts, value): argument
122 for v in consts:
125 self.assertIn(value, consts) # raises an exception
/external/scapy/scapy/
Droute.py14 import scapy.consts
100 if scapy.consts.WINDOWS:
117 if scapy.consts.WINDOWS:
160 (0xffffffff, 1, (scapy.consts.LOOPBACK_INTERFACE, a, "0.0.0.0"))
167 return scapy.consts.LOOPBACK_INTERFACE, "0.0.0.0", "0.0.0.0"
184 if scapy.consts.WINDOWS:
200 if (iface.name if hasattr(iface, "name") else iface) == scapy.consts.LOOPBACK_INTERFACE:
/external/scapy/scapy/arch/windows/
D__init__.py53 import scapy.consts
417 if 'netid' in data and data['netid'] == scapy.consts.LOOPBACK_NAME:
419 self.name = scapy.consts.LOOPBACK_NAME
432 if self.name == scapy.consts.LOOPBACK_NAME and conf.use_npcap:
450 if not self.ip and self.name == scapy.consts.LOOPBACK_NAME:
682 scapy.consts.LOOPBACK_INTERFACE = self.dev_from_name(
683 scapy.consts.LOOPBACK_NAME,
711 if isinstance(scapy.consts.LOOPBACK_INTERFACE, NetworkInterface):
712 return scapy.consts.LOOPBACK_INTERFACE
910 if conf.use_npcap and scapy.consts.LOOPBACK_INTERFACE:
[all …]
/external/python/cpython3/Python/
Dpeephole.c133 PyObject *consts, int n) in fold_tuple_on_constants() argument
136 assert(PyList_CheckExact(consts)); in fold_tuple_on_constants()
150 PyObject *constant = PyList_GET_ITEM(consts, arg); in fold_tuple_on_constants()
156 if (PyList_Append(consts, newconst)) { in fold_tuple_on_constants()
163 PyList_GET_SIZE(consts)-1, opcode_end); in fold_tuple_on_constants()
223 PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names, in PyCode_Optimize() argument
269 assert(PyList_Check(consts)); in PyCode_Optimize()
294 !PyObject_IsTrue(PyList_GET_ITEM(consts, get_arg(codestr, i)))) in PyCode_Optimize()
310 h, i+1, consts, j); in PyCode_Optimize()
Dcompile.c1646 ADDOP_O(c, LOAD_CONST, (PyObject*)co, consts); in compiler_make_closure()
1647 ADDOP_O(c, LOAD_CONST, qualname, consts); in compiler_make_closure()
1712 ADDOP_N(c, LOAD_CONST, keys_tuple, consts); in compiler_visit_kwonlydefaults()
1734 ADDOP_N(c, LOAD_CONST, ann_as_str, consts); in compiler_visit_annexpr()
1824 ADDOP_N(c, LOAD_CONST, keytuple, consts); in compiler_visit_annotations()
2013 ADDOP_O(c, LOAD_CONST, c->u->u_qualname, consts); in compiler_class()
2055 ADDOP_O(c, LOAD_CONST, Py_None, consts); in compiler_class()
2074 ADDOP_O(c, LOAD_CONST, s->v.ClassDef.name, consts); in compiler_class()
2406 ADDOP_O(c, LOAD_CONST, Py_None, consts); in compiler_async_for()
2586 ADDOP_O(c, LOAD_CONST, Py_None, consts); in compiler_try_finally()
[all …]
/external/syzkaller/sys/syz-extract/
Dextract.go44 consts map[string]uint64 member
114 j.consts, j.undeclared, j.err = processFile(extractor, j.arch, j)
200 for name := range f.consts {
290 consts, undeclared, err := extractor.processFile(arch, file.info)
294 data := compiler.SerializeConsts(consts, undeclared)
298 return consts, undeclared, nil
/external/syzkaller/sys/syz-sysgen/
Dsysgen.go95consts := compiler.DeserializeConstsGlob(filepath.Join("sys", OS, "*_"+job.Target.Arch+".const"), …
96 if consts == nil {
99 prog := compiler.Compile(top, consts, job.Target, eh)
107 generate(job.Target, prog, consts, out)
163 func generate(target *targets.Target, prg *compiler.Prog, consts map[string]uint64, out io.Writer) {
196 constArr := make([]prog.ConstValue, 0, len(consts))
197 for name, val := range consts {
/external/python/cpython2/Lib/
Dmodulefinder.py365 consts = co.co_consts
374 fromlist = consts[opargs[i-1][1]]
382 consts = co.co_consts
391 level = consts[opargs[i-2][1]]
392 fromlist = consts[opargs[i-1][1]]
604 consts = list(co.co_consts)
605 for i in range(len(consts)):
606 if isinstance(consts[i], type(co)):
607 consts[i] = self.replace_paths_in_code(consts[i])
610 co.co_flags, co.co_code, tuple(consts), co.co_names,
/external/python/cpython2/Objects/
Dcodeobject.c94 PyObject *code, PyObject *consts, PyObject *names, in PyCode_New() argument
103 consts == NULL || !PyTuple_Check(consts) || in PyCode_New()
119 intern_string_constants(consts); in PyCode_New()
128 Py_INCREF(consts); in PyCode_New()
129 co->co_consts = consts; in PyCode_New()
277 PyObject *consts; in code_new() local
290 &PyTuple_Type, &consts, in code_new()
333 code, consts, ournames, ourvarnames, in code_new()
/external/python/cpython3/Lib/test/
Dtest_code.py118 def consts(t): function
132 print("consts:", tuple(consts(co.co_consts)))
195 def find_const(self, consts, value): argument
196 for v in consts:
199 self.assertIn(value, consts) # raises an exception
/external/mesa3d/src/gallium/drivers/r600/
Dr600_query.c1614 } consts; in r600_query_hw_get_result_resource() local
1632 consts.end_offset = params.end_offset - params.start_offset; in r600_query_hw_get_result_resource()
1633 consts.fence_offset = params.fence_offset - params.start_offset; in r600_query_hw_get_result_resource()
1634 consts.result_stride = query->result_size; in r600_query_hw_get_result_resource()
1635 consts.pair_stride = params.pair_stride; in r600_query_hw_get_result_resource()
1636 consts.pair_count = params.pair_count; in r600_query_hw_get_result_resource()
1638 constant_buffer.buffer_size = sizeof(consts); in r600_query_hw_get_result_resource()
1639 constant_buffer.user_buffer = &consts; in r600_query_hw_get_result_resource()
1656 consts.config = 0; in r600_query_hw_get_result_resource()
1658 consts.config |= 4; in r600_query_hw_get_result_resource()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dr600_query.c1655 } consts; in r600_query_hw_get_result_resource() local
1673 consts.end_offset = params.end_offset - params.start_offset; in r600_query_hw_get_result_resource()
1674 consts.fence_offset = params.fence_offset - params.start_offset; in r600_query_hw_get_result_resource()
1675 consts.result_stride = query->result_size; in r600_query_hw_get_result_resource()
1676 consts.pair_stride = params.pair_stride; in r600_query_hw_get_result_resource()
1677 consts.pair_count = params.pair_count; in r600_query_hw_get_result_resource()
1679 constant_buffer.buffer_size = sizeof(consts); in r600_query_hw_get_result_resource()
1680 constant_buffer.user_buffer = &consts; in r600_query_hw_get_result_resource()
1697 consts.config = 0; in r600_query_hw_get_result_resource()
1699 consts.config |= 4; in r600_query_hw_get_result_resource()
[all …]
/external/python/cpython3/Lib/
Dmodulefinder.py343 consts = co.co_consts
352 level = consts[opargs[i-2][1]]
353 fromlist = consts[opargs[i-1][1]]
557 consts = list(co.co_consts)
558 for i in range(len(consts)):
559 if isinstance(consts[i], type(co)):
560 consts[i] = self.replace_paths_in_code(consts[i])
564 co.co_code, tuple(consts), co.co_names,
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_fragprog.c90 unsigned off = fp->consts[i].offset; in nv30_fragprog_validate()
91 unsigned idx = fp->consts[i].index * 4; in nv30_fragprog_validate()
160 FREE(fp->consts); in nv30_fp_state_delete()
/external/python/cpython3/Objects/
Dcodeobject.c99 PyObject *code, PyObject *consts, PyObject *names, in PyCode_New() argument
111 consts == NULL || !PyTuple_Check(consts) || in PyCode_New()
131 intern_string_constants(consts); in PyCode_New()
200 Py_INCREF(consts); in PyCode_New()
201 co->co_consts = consts; in PyCode_New()
352 PyObject *consts; in code_new() local
366 &PyTuple_Type, &consts, in code_new()
416 code, consts, ournames, ourvarnames, in code_new()

123456