Home
last modified time | relevance | path

Searched refs:s_buffer (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Objects/
Dcomplexobject.c981 char *s_buffer = NULL; in complex_subtype_from_string() local
991 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in complex_subtype_from_string()
992 if (s_buffer == NULL) in complex_subtype_from_string()
996 s_buffer, in complex_subtype_from_string()
999 s = s_buffer; in complex_subtype_from_string()
1118 if (s_buffer) in complex_subtype_from_string()
1119 PyMem_FREE(s_buffer); in complex_subtype_from_string()
1128 if (s_buffer) in complex_subtype_from_string()
1129 PyMem_FREE(s_buffer); in complex_subtype_from_string()
Dfloatobject.c179 char *s_buffer = NULL; in PyFloat_FromString() local
193 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in PyFloat_FromString()
194 if (s_buffer == NULL) in PyFloat_FromString()
198 s_buffer, in PyFloat_FromString()
201 s = s_buffer; in PyFloat_FromString()
240 if (s_buffer) in PyFloat_FromString()
241 PyMem_FREE(s_buffer); in PyFloat_FromString()
/external/python/cpython3/Objects/
Dcomplexobject.c878 PyObject *s_buffer = NULL, *result = NULL; in complex_subtype_from_string() local
882 s_buffer = _PyUnicode_TransformDecimalAndSpaceToASCII(v); in complex_subtype_from_string()
883 if (s_buffer == NULL) { in complex_subtype_from_string()
886 assert(PyUnicode_IS_ASCII(s_buffer)); in complex_subtype_from_string()
888 s = PyUnicode_AsUTF8AndSize(s_buffer, &len); in complex_subtype_from_string()
900 Py_DECREF(s_buffer); in complex_subtype_from_string()
Dfloatobject.c170 PyObject *s_buffer = NULL; in PyFloat_FromString() local
176 s_buffer = _PyUnicode_TransformDecimalAndSpaceToASCII(v); in PyFloat_FromString()
177 if (s_buffer == NULL) in PyFloat_FromString()
179 assert(PyUnicode_IS_ASCII(s_buffer)); in PyFloat_FromString()
181 s = PyUnicode_AsUTF8AndSize(s_buffer, &len); in PyFloat_FromString()
196 s_buffer = PyBytes_FromStringAndSize(s, len); in PyFloat_FromString()
197 if (s_buffer == NULL) { in PyFloat_FromString()
201 s = PyBytes_AS_STRING(s_buffer); in PyFloat_FromString()
212 Py_XDECREF(s_buffer); in PyFloat_FromString()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.c2383 float s_buffer[TGSI_QUAD_SIZE]; in img_filter_2d_ewa() local
2447 s_buffer[buffer_next] = u / ((float) width); in img_filter_2d_ewa()
2459 args.s = s_buffer[jj]; in img_filter_2d_ewa()
2489 args.s = s_buffer[jj]; in img_filter_2d_ewa()