Home
last modified time | relevance | path

Searched refs:ihigh (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Modules/
Dmmapmodule.c750 mmap_slice(mmap_object *self, Py_ssize_t ilow, Py_ssize_t ihigh) in mmap_slice() argument
757 if (ihigh < 0) in mmap_slice()
758 ihigh = 0; in mmap_slice()
759 if (ihigh < ilow) in mmap_slice()
760 ihigh = ilow; in mmap_slice()
761 else if (ihigh > self->size) in mmap_slice()
762 ihigh = self->size; in mmap_slice()
764 return PyString_FromStringAndSize(self->data + ilow, ihigh-ilow); in mmap_slice()
840 mmap_ass_slice(mmap_object *self, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v) in mmap_ass_slice() argument
849 if (ihigh < 0) in mmap_ass_slice()
[all …]
Darraymodule.c607 array_slice(arrayobject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in array_slice() argument
614 if (ihigh < 0) in array_slice()
615 ihigh = 0; in array_slice()
616 if (ihigh < ilow) in array_slice()
617 ihigh = ilow; in array_slice()
618 else if (ihigh > Py_SIZE(a)) in array_slice()
619 ihigh = Py_SIZE(a); in array_slice()
620 np = (arrayobject *) newarrayobject(&Arraytype, ihigh - ilow, a->ob_descr); in array_slice()
623 if (ihigh > ilow) { in array_slice()
625 (ihigh-ilow) * a->ob_descr->itemsize); in array_slice()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Dg722_decode.c248 int ihigh; in WebRtc_g722_decode() local
287 ihigh = (code >> 6) & 0x03; in WebRtc_g722_decode()
293 ihigh = (code >> 5) & 0x03; in WebRtc_g722_decode()
299 ihigh = (code >> 4) & 0x03; in WebRtc_g722_decode()
338 wd2 = qm2[ihigh]; in WebRtc_g722_decode()
349 wd2 = rh2[ihigh]; in WebRtc_g722_decode()
Dg722_encode.c286 int ihigh; in WebRtc_g722_encode() local
389 ihigh = (eh < 0) ? ihn[mih] : ihp[mih]; in WebRtc_g722_encode()
392 wd2 = qm2[ihigh]; in WebRtc_g722_encode()
396 ih2 = rh2[ihigh]; in WebRtc_g722_encode()
411 code = ((ihigh << 6) | ilow) >> (8 - s->bits_per_sample); in WebRtc_g722_encode()
/external/python/cpython2/Objects/
Drangeobject.c68 long ilow = 0, ihigh = 0, istep = 1; in range_new() local
77 &ihigh)) in range_new()
83 &ilow, &ihigh, &istep)) in range_new()
90 n = get_len_of_range(ilow, ihigh, istep); in range_new()
Dlistobject.c467 list_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in list_slice() argument
476 if (ihigh < ilow) in list_slice()
477 ihigh = ilow; in list_slice()
478 else if (ihigh > Py_SIZE(a)) in list_slice()
479 ihigh = Py_SIZE(a); in list_slice()
480 len = ihigh - ilow; in list_slice()
496 PyList_GetSlice(PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in PyList_GetSlice() argument
502 return list_slice((PyListObject *)a, ilow, ihigh); in PyList_GetSlice()
614 list_ass_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v) in list_ass_slice() argument
642 result = list_ass_slice(a, ilow, ihigh, v); in list_ass_slice()
[all …]
Dtupleobject.c395 register Py_ssize_t ihigh) in tupleslice() argument
403 if (ihigh > Py_SIZE(a)) in tupleslice()
404 ihigh = Py_SIZE(a); in tupleslice()
405 if (ihigh < ilow) in tupleslice()
406 ihigh = ilow; in tupleslice()
407 if (ilow == 0 && ihigh == Py_SIZE(a) && PyTuple_CheckExact(a)) { in tupleslice()
411 len = ihigh - ilow; in tupleslice()
/external/python/cpython2/Python/
Dbltinmodule.c1811 PyObject *ihigh = NULL; in handle_range_longs() local
1829 if (!PyArg_UnpackTuple(args, "range", 1, 3, &ilow, &ihigh, &istep)) { in handle_range_longs()
1839 if (ihigh == NULL) { in handle_range_longs()
1841 ihigh = ilow; in handle_range_longs()
1846 assert(ihigh != NULL); in handle_range_longs()
1847 high = get_range_long_argument(ihigh, "end"); in handle_range_longs()
1967 long ilow = 0, ihigh = 0, istep = 1; in builtin_range() local
1976 &ihigh)) { in builtin_range()
1984 &ilow, &ihigh, &istep)) { in builtin_range()
1995 bign = get_len_of_range(ilow, ihigh, istep); in builtin_range()
[all …]
Dceval.c4723 Py_ssize_t ilow = 0, ihigh = PY_SSIZE_T_MAX; in apply_slice() local
4726 if (!_PyEval_SliceIndex(w, &ihigh)) in apply_slice()
4728 return PySequence_GetSlice(u, ilow, ihigh); in apply_slice()
4750 Py_ssize_t ilow = 0, ihigh = PY_SSIZE_T_MAX; in assign_slice() local
4753 if (!_PyEval_SliceIndex(w, &ihigh)) in assign_slice()
4756 return PySequence_DelSlice(u, ilow, ihigh); in assign_slice()
4758 return PySequence_SetSlice(u, ilow, ihigh, x); in assign_slice()
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c4372 Array_slice(PyObject *_self, Py_ssize_t ilow, Py_ssize_t ihigh) in Array_slice() argument
4384 if (ihigh < ilow) in Array_slice()
4385 ihigh = ilow; in Array_slice()
4386 else if (ihigh > self->b_length) in Array_slice()
4387 ihigh = self->b_length; in Array_slice()
4388 len = ihigh - ilow; in Array_slice()
4552 Array_ass_slice(PyObject *_self, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *value) in Array_ass_slice() argument
4567 if (ihigh < 0) in Array_ass_slice()
4568 ihigh = 0; in Array_ass_slice()
4569 if (ihigh < ilow) in Array_ass_slice()
[all …]