Searched refs:result (Results 226 - 250 of 568) sorted by relevance

1234567891011>>

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
H A D_collectionsmodule.c303 PyObject *result; local
307 result = deque_extend(deque, s);
309 return result;
355 PyObject *result; local
359 result = deque_extendleft(deque, s);
361 return result;
403 PyObject *result; local
405 result = deque_extend(deque, other);
406 if (result == NULL)
407 return result;
769 PyObject *dict, *result, *aslist; local
800 PyObject *aslist, *result, *fmt; local
1394 PyObject *result; local
1468 PyObject *result; local
1519 int result; local
[all...]
H A Dreadline.c235 PyObject *result = set_hook("completion_display_matches_hook", local
248 return result;
708 int result = 0; local
718 result = 0;
720 result = PyInt_AsLong(r);
721 if (result == -1 && PyErr_Occurred())
733 return result;
735 return result;
803 char *result = NULL; local
814 result
[all...]
H A Dpyexpat.c275 int result = 0; local
280 result = tstate->c_profilefunc(tstate->c_profileobj,
285 if (result)
286 return result;
290 result = tstate->c_tracefunc(tstate->c_traceobj,
296 return result;
390 PyObject *result = STRING_CONV_FUNC(str);
392 /* result can be NULL if the unicode conversion failed. */
393 if (!result)
394 return result;
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
H A Derrors.c399 PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name); local
401 return result;
411 PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name); local
413 return result;
515 PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject( local
519 return result;
529 PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject( local
533 return result;
587 PyObject *result = NULL; local
619 result
634 int result; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
H A Dfileio.c538 PyObject *result; local
547 result = PyBytes_FromStringAndSize(NULL, SMALLCHUNK);
548 if (result == NULL)
557 Py_DECREF(result);
561 if (PyBytes_GET_SIZE(result) < (Py_ssize_t)newsize) {
562 if (_PyBytes_Resize(&result, newsize) < 0) {
564 Py_DECREF(result);
574 PyBytes_AS_STRING(result) + total,
583 Py_DECREF(result);
586 Py_DECREF(result);
[all...]
H A Dbytesio.c335 PyObject *result, *line; local
360 result = PyList_New(0);
361 if (!result)
368 if (PyList_Append(result, line) == -1) {
377 return result;
380 Py_DECREF(result);
555 PyObject *result = NULL; local
565 result = PyLong_FromSsize_t(n);
568 return result;
663 PyObject *result; local
[all...]
H A D_iomodule.c542 Py_off_t result;
550 result = (Py_off_t) PyInt_AS_LONG(value);
555 result = PyLong_AsOff_t(value);
556 if (result != -1 || !(runerr = PyErr_Occurred()))
573 result = PY_OFF_T_MIN;
575 result = PY_OFF_T_MAX;
586 return result;
592 _PyIO_ConvertSsize_t(PyObject *obj, void *result) {
608 *((Py_ssize_t *)result) = limit;
538 Py_off_t result; local
588 _PyIO_ConvertSsize_t(PyObject *obj, void *result) argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
H A Derrors.c377 PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name); local
379 return result;
389 PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name); local
391 return result;
493 PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject( local
497 return result;
507 PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObject( local
511 return result;
565 PyObject *result = NULL; local
597 result
612 int result; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
H A DComplex.py37 # the result equals hash(z.re)
61 # chooses the most appropriate type for the result:
234 result = eval(expr)
236 result = sys.exc_type
237 print '->', result
238 if isinstance(result, str) or isinstance(value, str):
239 ok = (result == value)
241 ok = abs(result - value) <= fuzz
243 print '!!\t!!\t!! should be', value, 'diff', abs(result - value)
H A Dbitvec.py144 data, result = self._data, 0L
147 result = result << (self._len - i)
149 result, data = (result << 1) | (data & 1), data >> 1
150 self._data = result
163 result = []
165 result.append(i)
166 return result
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
H A Dmathmodule.c11 1. If the mathematical result is a real number, but of magnitude too
13 result is an infinity (with the appropriate sign).
15 2. If the mathematical result is a real number, but of magnitude too
17 result is a zero (with the appropriate sign).
21 and the result is an infinity (with the appropriate sign). This is
25 sign of the zero determines the result of 1/0.
27 4. At a point where a function has no defined result in the extended
431 double x2, acc, fk, result; local
444 result = acc * x * exp(-x2) / sqrtpi;
446 return result;
461 double x2, a, da, p, p_last, q, q_last, b, result; local
619 int result = 1; /* presumption of guilt */ local
1091 PyObject *result, *iobj, *newresult; local
1280 double x, result; local
[all...]
H A Dpyexpat.c275 int result = 0; local
280 result = tstate->c_profilefunc(tstate->c_profileobj,
285 if (result)
286 return result;
290 result = tstate->c_tracefunc(tstate->c_traceobj,
296 return result;
390 PyObject *result = STRING_CONV_FUNC(str);
392 /* result can be NULL if the unicode conversion failed. */
393 if (!result)
394 return result;
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
H A Dbytesio.c345 PyObject *result, *line; local
370 result = PyList_New(0);
371 if (!result)
378 if (PyList_Append(result, line) == -1) {
387 return result;
390 Py_DECREF(result);
565 PyObject *result = NULL; local
575 result = PyLong_FromSsize_t(n);
578 return result;
673 PyObject *result; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_strptime.py294 # When gmtime() is used with %Z, entire result of strftime() is empty.
413 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
415 self.assertTrue(result.tm_yday == self.time_tuple.tm_yday,
417 (result.tm_yday, self.time_tuple.tm_yday))
422 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
424 self.assertTrue(result.tm_year == self.time_tuple.tm_year and
425 result.tm_mon == self.time_tuple.tm_mon and
426 result.tm_mday == self.time_tuple.tm_mday,
429 (result.tm_year, result
[all...]
H A Dtest_long_future.py50 result = math.ldexp(float(q), exp)
51 return -result if negative else result
84 result = eval(underflow, namespace)
85 self.assertEqual(result, 0.0, 'expected underflow to 0 '
93 """Verify that the result of a/b is correctly rounded, by
127 # result of true division of ints is always correctly rounded.
182 # test round-half-to-even behaviour, normal result
188 # test round-half-to-even, subnormal result
H A Dtest_types.py94 def test(f, result):
95 self.assertEqual(f.__format__('e'), result)
96 self.assertEqual('%e' % f, result)
297 def test(i, format_spec, result):
301 self.assertEqual(i.__format__(format_spec), result)
302 self.assertEqual(i.__format__(unicode(format_spec)), result)
451 def test(i, format_spec, result):
455 self.assertEqual(i.__format__(format_spec), result)
456 self.assertEqual(i.__format__(unicode(format_spec)), result)
590 def test(f, format_spec, result)
[all...]
H A Dtest_re.py792 result = obj.search(s)
799 if result is None: pass # No match, as expected
802 if result is not None:
804 # result string and compare it to our expected result.
805 start, end = result.span(0)
806 vardict={'found': result.group(0),
807 'groups': result.group(),
808 'flags': result.re.flags}
811 gi = result
[all...]
H A Dtest_copy_reg.py111 result = copy_reg._slotnames(WithInherited)
112 result.sort()
113 self.assertEqual(result, expected)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
H A Dpindent.py40 # they yield an identical result). Running first "pindent -c" and
425 result = complete_string(source, stepsize, tabsize, expandtabs)
426 if source == result: return 0
433 f.write(result)
440 result = delete_string(source, stepsize, tabsize, expandtabs)
441 if source == result: return 0
448 f.write(result)
455 result = reformat_string(source, stepsize, tabsize, expandtabs)
456 if source == result: return 0
463 f.write(result)
[all...]
/device/google/dragon/recovery/updater/
H A Dflash_ec.c45 uint32_t result; member in struct:cros_ec_command
70 s_cmd.result = 0xff;
80 } else if (s_cmd.result != EC_RES_SUCCESS) {
81 ALOGD("Cmd 0x%x error %d\n", command, s_cmd.result);
82 return s_cmd.result;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dmimetools.py80 result = []
84 result.append(p[:i].lower())
85 return result
119 result = _counter
121 return result
/device/google/contexthub/firmware/os/algos/common/math/
H A Dvec.c114 float result = 0; local
116 result += v[i] * w[i];
118 return result;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
H A Ddictobject.c1083 PyObject *pieces = NULL, *result = NULL; local
1092 result = PyString_FromString("{}");
1147 result = _PyString_Join(s, pieces);
1154 return result;
1439 int result = 0; local
1442 result = -1;
1446 result = PyDict_Merge(self, arg, 1);
1448 result = PyDict_MergeFromSeq2(self, arg, 1);
1450 if (result == 0 && kwds != NULL)
1451 result
2671 PyObject *key, *value, *result = di->di_result; local
2853 PyObject *result; local
2915 PyObject *result; local
2966 PyObject *result = PySet_New(self); local
2984 PyObject *result = PySet_New(self); local
3002 PyObject *result = PySet_New(self); local
3020 PyObject *result = PySet_New(self); local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
H A Ddictobject.c1058 PyObject *pieces = NULL, *result = NULL; local
1067 result = PyString_FromString("{}");
1122 result = _PyString_Join(s, pieces);
1129 return result;
1405 int result = 0; local
1408 result = -1;
1412 result = PyDict_Merge(self, arg, 1);
1414 result = PyDict_MergeFromSeq2(self, arg, 1);
1416 if (result == 0 && kwds != NULL)
1417 result
2637 PyObject *key, *value, *result = di->di_result; local
2819 PyObject *result; local
2881 PyObject *result; local
2928 PyObject *result = PySet_New(self); local
2946 PyObject *result = PySet_New(self); local
2964 PyObject *result = PySet_New(self); local
2982 PyObject *result = PySet_New(self); local
[all...]
/device/generic/goldfish/camera/
H A DExif.cpp231 static void convertGpsCoordinate(float degrees, float (*result)[3]) { argument
234 (*result)[0] = floor(absDegrees);
238 float minutes = (absDegrees - (*result)[0]) * 60.0f;
239 (*result)[1] = floor(minutes);
242 float seconds = (minutes - (*result)[1]) * 60.0f;
243 (*result)[2] = seconds;

Completed in 448 milliseconds

1234567891011>>