Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 617) sorted by relevance

12345678910>>...25

/device/google/contexthub/firmware/os/algos/common/math/
Dvec.h57 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument
58 ASSERT_NOT_NULL(v); in initVec3()
59 v->x = x; in initVec3()
60 v->y = y; in initVec3()
61 v->z = z; in initVec3()
65 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() argument
66 ASSERT_NOT_NULL(v); in vec3Add()
68 v->x += w->x; in vec3Add()
69 v->y += w->y; in vec3Add()
70 v->z += w->z; in vec3Add()
[all …]
Dvec.c54 void vecAdd(float *u, const float *v, const float *w, size_t dim) { in vecAdd() argument
56 ASSERT_NOT_NULL(v); in vecAdd()
60 u[i] = v[i] + w[i]; in vecAdd()
64 void vecAddInPlace(float *v, const float *w, size_t dim) { in vecAddInPlace() argument
65 ASSERT_NOT_NULL(v); in vecAddInPlace()
69 v[i] += w[i]; in vecAddInPlace()
73 void vecSub(float *u, const float *v, const float *w, size_t dim) { in vecSub() argument
75 ASSERT_NOT_NULL(v); in vecSub()
79 u[i] = v[i] - w[i]; in vecSub()
83 void vecScalarMul(float *u, const float *v, float c, size_t dim) { in vecScalarMul() argument
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/include/sys/fio/
Dxf-types.h78 #define xf_next_power_of_two(v) __xf_power_of_two_1((v) - 1) argument
79 #define __xf_power_of_two_1(v) __xf_power_of_two_2((v) | ((v) >> 1)) argument
80 #define __xf_power_of_two_2(v) __xf_power_of_two_3((v) | ((v) >> 2)) argument
81 #define __xf_power_of_two_3(v) __xf_power_of_two_4((v) | ((v) >> 4)) argument
82 #define __xf_power_of_two_4(v) __xf_power_of_two_5((v) | ((v) >> 8)) argument
83 #define __xf_power_of_two_5(v) __xf_power_of_two_6((v) | ((v) >> 16)) argument
84 #define __xf_power_of_two_6(v) ((v) + 1) argument
87 #define xf_is_power_of_two(v) (((v) & ((v) - 1)) == 0) argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dstructmember.c12 PyObject *v; in listmembers() local
15 v = PyList_New(n); in listmembers()
16 if (v != NULL) { in listmembers()
18 PyList_SetItem(v, i, in listmembers()
21 Py_DECREF(v); in listmembers()
22 v = NULL; in listmembers()
25 PyList_Sort(v); in listmembers()
28 return v; in listmembers()
56 PyObject *v; in PyMember_GetOne() local
65 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne()
[all …]
Dmodsupport.c35 PyObject *m, *d, *v, *n; in Py_InitModule4() local
81 v = PyCFunction_NewEx(ml, passthrough, n); in Py_InitModule4()
82 if (v == NULL) { in Py_InitModule4()
86 if (PyDict_SetItemString(d, ml->ml_name, v) != 0) { in Py_InitModule4()
87 Py_DECREF(v); in Py_InitModule4()
91 Py_DECREF(v); in Py_InitModule4()
96 v = PyString_FromString(doc); in Py_InitModule4()
97 if (v == NULL || PyDict_SetItemString(d, "__doc__", v) != 0) { in Py_InitModule4()
98 Py_XDECREF(v); in Py_InitModule4()
101 Py_DECREF(v); in Py_InitModule4()
[all …]
Dceval.c39 ppc_getcounter(uint64 *v) in ppc_getcounter() argument
51 ((long*)(v))[0] = tbu; in ppc_getcounter()
52 ((long*)(v))[1] = tb; in ppc_getcounter()
701 register PyObject *v; /* Temporary objects popped off stack */ in PyEval_EvalFrameEx() local
731 #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i)) in PyEval_EvalFrameEx() argument
733 #define GETITEM(v, i) PyTuple_GetItem((v), (i)) in PyEval_EvalFrameEx() argument
828 #define SET_TOP(v) (stack_pointer[-1] = (v)) in PyEval_EvalFrameEx() argument
829 #define SET_SECOND(v) (stack_pointer[-2] = (v)) in PyEval_EvalFrameEx() argument
830 #define SET_THIRD(v) (stack_pointer[-3] = (v)) in PyEval_EvalFrameEx() argument
831 #define SET_FOURTH(v) (stack_pointer[-4] = (v)) in PyEval_EvalFrameEx() argument
[all …]
Dsymtable.c240 seq = mod->v.Module.body; in PySymtable_Build()
247 if (!symtable_visit_expr(st, mod->v.Expression.body)) in PySymtable_Build()
251 seq = mod->v.Interactive.body; in PySymtable_Build()
287 PyObject *k, *v; in PySymtable_Lookup() local
292 v = PyDict_GetItem(st->st_symbols, k); in PySymtable_Lookup()
293 if (v) { in PySymtable_Lookup()
294 assert(PySTEntry_Check(v)); in PySymtable_Lookup()
295 Py_INCREF(v); in PySymtable_Lookup()
303 return (PySTEntryObject *)v; in PySymtable_Lookup()
309 PyObject *v = PyDict_GetItem(ste->ste_symbols, name); in PyST_GetScope() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dstructmember.c12 PyObject *v; in listmembers() local
15 v = PyList_New(n); in listmembers()
16 if (v != NULL) { in listmembers()
18 PyList_SetItem(v, i, in listmembers()
21 Py_DECREF(v); in listmembers()
22 v = NULL; in listmembers()
25 PyList_Sort(v); in listmembers()
28 return v; in listmembers()
56 PyObject *v; in PyMember_GetOne() local
65 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne()
[all …]
Dmodsupport.c35 PyObject *m, *d, *v, *n; in Py_InitModule4() local
81 v = PyCFunction_NewEx(ml, passthrough, n); in Py_InitModule4()
82 if (v == NULL) { in Py_InitModule4()
86 if (PyDict_SetItemString(d, ml->ml_name, v) != 0) { in Py_InitModule4()
87 Py_DECREF(v); in Py_InitModule4()
91 Py_DECREF(v); in Py_InitModule4()
96 v = PyString_FromString(doc); in Py_InitModule4()
97 if (v == NULL || PyDict_SetItemString(d, "__doc__", v) != 0) { in Py_InitModule4()
98 Py_XDECREF(v); in Py_InitModule4()
101 Py_DECREF(v); in Py_InitModule4()
[all …]
Dceval.c39 ppc_getcounter(uint64 *v) in ppc_getcounter() argument
51 ((long*)(v))[0] = tbu; in ppc_getcounter()
52 ((long*)(v))[1] = tb; in ppc_getcounter()
699 register PyObject *v; /* Temporary objects popped off stack */ in PyEval_EvalFrameEx() local
729 #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i)) in PyEval_EvalFrameEx() argument
731 #define GETITEM(v, i) PyTuple_GetItem((v), (i)) in PyEval_EvalFrameEx() argument
826 #define SET_TOP(v) (stack_pointer[-1] = (v)) in PyEval_EvalFrameEx() argument
827 #define SET_SECOND(v) (stack_pointer[-2] = (v)) in PyEval_EvalFrameEx() argument
828 #define SET_THIRD(v) (stack_pointer[-3] = (v)) in PyEval_EvalFrameEx() argument
829 #define SET_FOURTH(v) (stack_pointer[-4] = (v)) in PyEval_EvalFrameEx() argument
[all …]
Dsymtable.c238 seq = mod->v.Module.body; in PySymtable_Build()
245 if (!symtable_visit_expr(st, mod->v.Expression.body)) in PySymtable_Build()
249 seq = mod->v.Interactive.body; in PySymtable_Build()
285 PyObject *k, *v; in PySymtable_Lookup() local
290 v = PyDict_GetItem(st->st_symbols, k); in PySymtable_Lookup()
291 if (v) { in PySymtable_Lookup()
292 assert(PySTEntry_Check(v)); in PySymtable_Lookup()
293 Py_INCREF(v); in PySymtable_Lookup()
301 return (PySTEntryObject *)v; in PySymtable_Lookup()
307 PyObject *v = PyDict_GetItem(ste->ste_symbols, name); in PyST_GetScope() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DVec.py25 def __init__(self, *v): argument
26 self.v = list(v)
29 def fromlist(cls, v): argument
30 if not isinstance(v, list):
33 inst.v = v
37 args = ', '.join(repr(x) for x in self.v)
41 return len(self.v)
44 return self.v[i]
48 v = [x + y for x, y in zip(self.v, other.v)]
49 return Vec.fromlist(v)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dyuv.h30 } v[4]; member
33 #define YUV411_Y00(y) (y).v[0].y0
34 #define YUV411_Y01(y) (y).v[1].y0
35 #define YUV411_Y02(y) (y).v[2].y0
36 #define YUV411_Y03(y) (y).v[3].y0
37 #define YUV411_Y10(y) (y).v[0].y1
38 #define YUV411_Y11(y) (y).v[1].y1
39 #define YUV411_Y12(y) (y).v[2].y1
40 #define YUV411_Y13(y) (y).v[3].y1
41 #define YUV411_U00(y) ((y).v[0].u0<<6|(y).v[1].u0<<4|(y).v[2].u0<<2|(y).v[3].u0)
[all …]
D_struct.c108 get_pylong(PyObject *v) in get_pylong() argument
112 assert(v != NULL); in get_pylong()
113 if (!PyInt_Check(v) && !PyLong_Check(v)) { in get_pylong()
121 m = Py_TYPE(v)->tp_as_number; in get_pylong()
122 if (PyIndex_Check(v)) { in get_pylong()
123 w = PyNumber_Index(v); in get_pylong()
125 v = w; in get_pylong()
138 if (PyFloat_Check(v)) { in get_pylong()
150 v = m->nb_int(v); in get_pylong()
151 if (v == NULL) in get_pylong()
[all …]
/device/linaro/bootloader/edk2/StdLib/Include/Arm/machine/
Dbyte_swap.h39 __byte_swap_u32_variable(uint32_t v) in __byte_swap_u32_variable() argument
43 t1 = v ^ ((v << 16) | (v >> 16)); in __byte_swap_u32_variable()
45 v = (v >> 8) | (v << 24); in __byte_swap_u32_variable()
46 v ^= (t1 >> 8); in __byte_swap_u32_variable()
47 return (v); in __byte_swap_u32_variable()
52 __byte_swap_u16_variable(uint16_t v) in __byte_swap_u16_variable() argument
55 v &= 0xffff; in __byte_swap_u16_variable()
56 v = (v >> 8) | (v << 8); in __byte_swap_u16_variable()
57 return (v); in __byte_swap_u16_variable()
/device/linaro/bootloader/edk2/StdLib/Include/Aarch64/machine/
Dbyte_swap.h39 __byte_swap_u32_variable(uint32_t v) in __byte_swap_u32_variable() argument
43 t1 = v ^ ((v << 16) | (v >> 16)); in __byte_swap_u32_variable()
45 v = (v >> 8) | (v << 24); in __byte_swap_u32_variable()
46 v ^= (t1 >> 8); in __byte_swap_u32_variable()
47 return (v); in __byte_swap_u32_variable()
52 __byte_swap_u16_variable(uint16_t v) in __byte_swap_u16_variable() argument
55 v &= 0xffff; in __byte_swap_u16_variable()
56 v = (v >> 8) | (v << 8); in __byte_swap_u16_variable()
57 return (v); in __byte_swap_u16_variable()
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dherror.c97 register struct iovec *v = iov; in herror() local
100 v->iov_base = (char *)s; in herror()
101 v->iov_len = strlen(s); in herror()
102 v++; in herror()
103 v->iov_base = ": "; in herror()
104 v->iov_len = 2; in herror()
105 v++; in herror()
107 v->iov_base = (char *)hstrerror(h_errno); in herror()
108 v->iov_len = strlen(v->iov_base); in herror()
109 v++; in herror()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-debug.h51 #define xf_next_power_of_two(v) __xf_power_of_two_1((v) - 1) argument
52 #define __xf_power_of_two_1(v) __xf_power_of_two_2((v) | ((v) >> 1)) argument
53 #define __xf_power_of_two_2(v) __xf_power_of_two_3((v) | ((v) >> 2)) argument
54 #define __xf_power_of_two_3(v) __xf_power_of_two_4((v) | ((v) >> 4)) argument
55 #define __xf_power_of_two_4(v) __xf_power_of_two_5((v) | ((v) >> 8)) argument
56 #define __xf_power_of_two_5(v) __xf_power_of_two_6((v) | ((v) >> 16)) argument
57 #define __xf_power_of_two_6(v) ((v) + 1) argument
60 #define xf_is_power_of_two(v) (((v) & ((v) - 1)) == 0) argument
84 #define C_UNUSED(v) (void)(0 ? (v) = (v), 1 : 0) argument
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/
Dxf-hal.h94 u32 v; in xf_atomic_test_and_set() local
98 v = *bitmap, *bitmap = v | mask; in xf_atomic_test_and_set()
101 return !(v & mask); in xf_atomic_test_and_set()
107 u32 v; in xf_atomic_test_and_clear() local
111 v = *bitmap, *bitmap = v & ~mask; in xf_atomic_test_and_clear()
114 return (v & mask); in xf_atomic_test_and_clear()
120 u32 v; in xf_atomic_set() local
124 v = *bitmap, *bitmap = (v |= mask); in xf_atomic_set()
127 return v; in xf_atomic_set()
133 u32 v; in xf_atomic_clear() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_unixccompiler.py41 def gcv(v): argument
46 def gcv(v): argument
51 def gcv(v): argument
68 def gcv(v): argument
69 if v == 'CC':
71 elif v == 'GNULD':
78 def gcv(v): argument
79 if v == 'CC':
81 elif v == 'GNULD':
89 def gcv(v): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dobject.c116 PyObject *v; in get_counts() local
122 v = Py_BuildValue("(snnn)", tp->tp_name, tp->tp_allocs, in get_counts()
124 if (v == NULL) { in get_counts()
128 if (PyList_Append(result, v) < 0) { in get_counts()
129 Py_DECREF(v); in get_counts()
133 Py_DECREF(v); in get_counts()
364 PyObject_Repr(PyObject *v) in PyObject_Repr() argument
374 if (v == NULL) in PyObject_Repr()
376 else if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr()
378 Py_TYPE(v)->tp_name, v); in PyObject_Repr()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dobject.c116 PyObject *v; in get_counts() local
122 v = Py_BuildValue("(snnn)", tp->tp_name, tp->tp_allocs, in get_counts()
124 if (v == NULL) { in get_counts()
128 if (PyList_Append(result, v) < 0) { in get_counts()
129 Py_DECREF(v); in get_counts()
133 Py_DECREF(v); in get_counts()
364 PyObject_Repr(PyObject *v) in PyObject_Repr() argument
374 if (v == NULL) in PyObject_Repr()
376 else if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr()
378 Py_TYPE(v)->tp_name, v); in PyObject_Repr()
[all …]
Dintobject.c8 static PyObject *int_int(PyIntObject *v);
89 register PyIntObject *v; in PyInt_FromLong() local
92 v = small_ints[ival + NSMALLNEGINTS]; in PyInt_FromLong()
93 Py_INCREF(v); in PyInt_FromLong()
100 return (PyObject *) v; in PyInt_FromLong()
108 v = free_list; in PyInt_FromLong()
109 free_list = (PyIntObject *)Py_TYPE(v); in PyInt_FromLong()
110 PyObject_INIT(v, &PyInt_Type); in PyInt_FromLong()
111 v->ob_ival = ival; in PyInt_FromLong()
112 return (PyObject *) v; in PyInt_FromLong()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_struct.c108 get_pylong(PyObject *v) in get_pylong() argument
112 assert(v != NULL); in get_pylong()
113 if (!PyInt_Check(v) && !PyLong_Check(v)) { in get_pylong()
121 m = Py_TYPE(v)->tp_as_number; in get_pylong()
122 if (PyIndex_Check(v)) { in get_pylong()
123 w = PyNumber_Index(v); in get_pylong()
125 v = w; in get_pylong()
138 if (PyFloat_Check(v)) { in get_pylong()
150 v = m->nb_int(v); in get_pylong()
151 if (v == NULL) in get_pylong()
[all …]
/device/generic/opengl-transport/host/commands/emugen/
DEntryPoint.cpp110 const VarType *v = TypeFactory::instance()->getVarTypeByName(vartype); in parse() local
111 if (v->id() == 0) { in parse()
115 !(v->name() == "void" && !v->isPointer())) { in parse()
121 m_vars.push_back(Var(varname, v, std::string(""), Var::POINTER_IN, "", "", "")); in parse()
152 Var *v = NULL; in var() local
155 v = &m_vars[i]; in var()
159 return v; in var()
164 const Var *v = NULL; in var() local
167 v = &m_vars[i]; in var()
171 return v; in var()
[all …]

12345678910>>...25