/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/ |
D | Dict.py | 86 d = {} 90 d['abc'] = 1 91 d['def'] = 2 92 d['ghi'] = 3 93 d['jkl'] = 4 94 d['mno'] = 5 95 d['pqr'] = 6 97 d['abc'] 98 d['def'] 99 d['ghi'] [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/ |
D | errnomodule.c | 32 _inscode(PyObject *d, PyObject *de, char *name, int code) in _inscode() argument 43 PyDict_SetItem(d, u, v); in _inscode() 68 PyObject *m, *d, *de; in initerrno() local 72 d = PyModule_GetDict(m); in initerrno() 74 if (!d || !de || PyDict_SetItemString(d, "errorcode", de) < 0) in initerrno() 78 #define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code) in initerrno() argument 86 inscode(d, ds, de, "ENODEV", ENODEV, "No such device"); in initerrno() 89 inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available"); in initerrno() 92 inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host"); in initerrno() 95 inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); in initerrno() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
D | errnomodule.c | 31 _inscode(PyObject *d, PyObject *de, char *name, int code) in _inscode() argument 42 PyDict_SetItem(d, u, v); in _inscode() 67 PyObject *m, *d, *de; in initerrno() local 71 d = PyModule_GetDict(m); in initerrno() 73 if (!d || !de || PyDict_SetItemString(d, "errorcode", de) < 0) in initerrno() 77 #define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code) in initerrno() argument 85 inscode(d, ds, de, "ENODEV", ENODEV, "No such device"); in initerrno() 88 inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available"); in initerrno() 91 inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host"); in initerrno() 94 inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); in initerrno() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | errnomodule.c | 32 _inscode(PyObject *d, PyObject *de, char *name, int code) in _inscode() argument 43 PyDict_SetItem(d, u, v); in _inscode() 68 PyObject *m, *d, *de; in initerrno() local 72 d = PyModule_GetDict(m); in initerrno() 74 if (!d || !de || PyDict_SetItemString(d, "errorcode", de) < 0) in initerrno() 78 #define inscode(d, ds, de, name, code, comment) _inscode(d, de, name, code) in initerrno() argument 86 inscode(d, ds, de, "ENODEV", ENODEV, "No such device"); in initerrno() 89 inscode(d, ds, de, "ENOCSI", ENOCSI, "No CSI structure available"); in initerrno() 92 inscode(d, ds, de, "EHOSTUNREACH", EHOSTUNREACH, "No route to host"); in initerrno() 95 inscode(d, ds, de, "EHOSTUNREACH", WSAEHOSTUNREACH, "No route to host"); in initerrno() [all …]
|
D | md5.c | 137 c = pms->abcd[2], d = pms->abcd[3]; in md5_process() local 204 #define SET(a, b, c, d, k, s, Ti)\ in md5_process() argument 205 t = a + F(b,c,d) + X[k] + Ti;\ in md5_process() 208 SET(a, b, c, d, 0, 7, T1); in md5_process() 209 SET(d, a, b, c, 1, 12, T2); in md5_process() 210 SET(c, d, a, b, 2, 17, T3); in md5_process() 211 SET(b, c, d, a, 3, 22, T4); in md5_process() 212 SET(a, b, c, d, 4, 7, T5); in md5_process() 213 SET(d, a, b, c, 5, 12, T6); in md5_process() 214 SET(c, d, a, b, 6, 17, T7); in md5_process() [all …]
|
D | fcntlmodule.c | 424 ins(PyObject* d, char* symbol, long value) in ins() argument 427 if (!v || PyDict_SetItemString(d, symbol, v) < 0) in ins() 434 #define INS(x) if (ins(d, #x, (long)x)) return -1 437 all_ins(PyObject* d) in all_ins() argument 439 if (ins(d, "LOCK_SH", (long)LOCK_SH)) return -1; in all_ins() 440 if (ins(d, "LOCK_EX", (long)LOCK_EX)) return -1; in all_ins() 441 if (ins(d, "LOCK_NB", (long)LOCK_NB)) return -1; in all_ins() 442 if (ins(d, "LOCK_UN", (long)LOCK_UN)) return -1; in all_ins() 445 if (ins(d, "LOCK_MAND", (long)LOCK_MAND)) return -1; in all_ins() 448 if (ins(d, "LOCK_READ", (long)LOCK_READ)) return -1; in all_ins() [all …]
|
/device/google/dragon/audio/hal/ |
D | dictionary.c | 119 dictionary * d ; in dictionary_new() local 124 if (!(d = (dictionary *)calloc(1, sizeof(dictionary)))) { in dictionary_new() 127 d->size = size ; in dictionary_new() 128 d->val = (char **)calloc(size, sizeof(char*)); in dictionary_new() 129 d->key = (char **)calloc(size, sizeof(char*)); in dictionary_new() 130 d->hash = (unsigned int *)calloc(size, sizeof(unsigned)); in dictionary_new() 131 return d ; in dictionary_new() 143 void dictionary_del(dictionary * d) in dictionary_del() argument 147 if (d==NULL) return ; in dictionary_del() 148 for (i=0 ; i<d->size ; i++) { in dictionary_del() [all …]
|
D | iniparser.c | 112 int iniparser_getnsec(dictionary * d) in iniparser_getnsec() argument 117 if (d==NULL) return -1 ; in iniparser_getnsec() 119 for (i=0 ; i<d->size ; i++) { in iniparser_getnsec() 120 if (d->key[i]==NULL) in iniparser_getnsec() 122 if (strchr(d->key[i], ':')==NULL) { in iniparser_getnsec() 143 char * iniparser_getsecname(dictionary * d, int n) in iniparser_getsecname() argument 148 if (d==NULL || n<0) return NULL ; in iniparser_getsecname() 150 for (i=0 ; i<d->size ; i++) { in iniparser_getsecname() 151 if (d->key[i]==NULL) in iniparser_getsecname() 153 if (strchr(d->key[i], ':')==NULL) { in iniparser_getsecname() [all …]
|
D | iniparser.h | 49 int iniparser_getnsec(dictionary * d); 67 char * iniparser_getsecname(dictionary * d, int n); 82 void iniparser_dump_ini(dictionary * d, FILE * f); 97 void iniparser_dumpsection_ini(dictionary * d, char * s, FILE * f); 112 void iniparser_dump(dictionary * d, FILE * f); 122 int iniparser_getsecnkeys(dictionary * d, char * s); 138 char ** iniparser_getseckeys(dictionary * d, char * s); 155 char * iniparser_getstring(dictionary * d, const char * key, char * def); 184 int iniparser_getint(dictionary * d, const char * key, int notfound); 199 double iniparser_getdouble(dictionary * d, const char * key, double notfound); [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_deque.py | 31 d = deque(xrange(-5125, -5000)) 32 d.__init__(xrange(200)) 34 d.append(i) 36 d.appendleft(i) 37 self.assertEqual(list(d), range(-200, 400)) 38 self.assertEqual(len(d), 600) 40 left = [d.popleft() for i in xrange(250)] 42 self.assertEqual(list(d), range(50, 400)) 44 right = [d.pop() for i in xrange(250)] 47 self.assertEqual(list(d), range(50, 150)) [all …]
|
D | test_dict.py | 32 d = {} 33 self.assertEqual(d.keys(), []) 34 d = {'a': 1, 'b': 2} 35 k = d.keys() 36 self.assertTrue(d.has_key('a')) 37 self.assertTrue(d.has_key('b')) 39 self.assertRaises(TypeError, d.keys, None) 42 d = {} 43 self.assertEqual(d.values(), []) 44 d = {1:2} [all …]
|
D | mapping_tests.py | 47 d = self._full_mapping(self.reference) 48 if d is p: 52 self.assertEqual(d[key], value) 54 self.assertRaises(KeyError, lambda:d[knownkey]) 57 self.assertEqual(len(d), len(self.reference)) 60 self.assertIn(k, d) 62 self.assertNotIn(k, d) 66 self.assertTrue(d.has_key(k)) 68 self.assertFalse(d.has_key(k)) 71 self.assertEqual(cmp(d,d), 0) [all …]
|
D | test_compile.py | 117 d = D() 118 exec 'z = a' in g, d 119 self.assertEqual(d['z'], 12) 265 d = -281474976710656 # 1 << 48 383 d = str_map() 385 d[1] = 1 386 self.assertEqual(d[1], 1) 387 d[1] += 1 388 self.assertEqual(d[1], 2) 389 del d[1] [all …]
|
D | test_decimal.py | 426 d = Decimal(45) 427 self.assertEqual(str(d), '45') 430 d = Decimal(500000123) 431 self.assertEqual(str(d), '500000123') 434 d = Decimal(-45) 435 self.assertEqual(str(d), '-45') 438 d = Decimal(0) 439 self.assertEqual(str(d), '0') 471 d = Decimal( (0, (0,), 0) ) 472 self.assertEqual(str(d), '0') [all …]
|
D | test_dbm.py | 9 self.d = dbm.open(self.filename, 'c') 10 self.d.close() 17 self.d = dbm.open(self.filename, 'c') 18 self.assertEqual(self.d.keys(), []) 21 self.d[k] = v 22 self.assertEqual(sorted(self.d.keys()), sorted(k for (k, v) in a)) 24 self.assertIn(k, self.d) 25 self.assertEqual(self.d[k], v) 26 self.assertNotIn('xxx', self.d) 27 self.assertRaises(KeyError, lambda: self.d['xxx']) [all …]
|
D | test_iterlen.py | 119 d = deque(xrange(n)) 120 self.it = iter(d) 121 self.mutate = d.pop 126 d = deque(xrange(n)) 127 self.it = reversed(d) 128 self.mutate = d.pop 133 d = dict.fromkeys(xrange(n)) 134 self.it = iter(d) 135 self.mutate = d.popitem 140 d = dict.fromkeys(xrange(n)) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | md5.c | 137 c = pms->abcd[2], d = pms->abcd[3]; in md5_process() local 204 #define SET(a, b, c, d, k, s, Ti)\ in md5_process() argument 205 t = a + F(b,c,d) + X[k] + Ti;\ in md5_process() 208 SET(a, b, c, d, 0, 7, T1); in md5_process() 209 SET(d, a, b, c, 1, 12, T2); in md5_process() 210 SET(c, d, a, b, 2, 17, T3); in md5_process() 211 SET(b, c, d, a, 3, 22, T4); in md5_process() 212 SET(a, b, c, d, 4, 7, T5); in md5_process() 213 SET(d, a, b, c, 5, 12, T6); in md5_process() 214 SET(c, d, a, b, 6, 17, T7); in md5_process() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
D | dutree.py | 8 total, d = None, {} 18 total, d = store(size, comps, total, d) 20 display(total, d) 25 def store(size, comps, total, d): argument 27 return size, d 28 if not d.has_key(comps[0]): 29 d[comps[0]] = None, {} 30 t1, d1 = d[comps[0]] 31 d[comps[0]] = store(size, comps[1:], t1, d1) 32 return total, d [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/ |
D | printgrammar.c | 33 dfa *d; in printnonterminals() local 38 d = g->g_dfa; in printnonterminals() 39 for (i = g->g_ndfas; --i >= 0; d++) in printnonterminals() 40 fprintf(fp, "#define %s %d\n", d->d_name, d->d_type); in printnonterminals() 44 printarcs(int i, dfa *d, FILE *fp) in printarcs() argument 50 s = d->d_state; in printarcs() 51 for (j = 0; j < d->d_nstates; j++, s++) { in printarcs() 65 dfa *d; in printstates() local 68 d = g->g_dfa; in printstates() 69 for (i = 0; i < g->g_ndfas; i++, d++) { in printstates() [all …]
|
D | firstsets.c | 17 dfa *d; in addfirstsets() local 22 d = &g->g_dfa[i]; in addfirstsets() 23 if (d->d_first == NULL) in addfirstsets() 24 calcfirstset(g, d); in addfirstsets() 29 calcfirstset(grammar *g, dfa *d) in calcfirstset() argument 44 printf("Calculate FIRST set for '%s'\n", d->d_name); in calcfirstset() 48 if (d->d_first == dummy) { in calcfirstset() 49 fprintf(stderr, "Left-recursion for '%s'\n", d->d_name); in calcfirstset() 52 if (d->d_first != NULL) { in calcfirstset() 54 d->d_name); in calcfirstset() [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/Math/ |
D | math_private.h | 72 #define EXTRACT_WORDS(ix0,ix1,d) \ argument 75 ew_u.value = (d); \ 82 #define GET_HIGH_WORD(i,d) \ argument 85 gh_u.value = (d); \ 91 #define GET_LOW_WORD(i,d) \ argument 94 gl_u.value = (d); \ 100 #define INSERT_WORDS(d,ix0,ix1) \ argument 105 (d) = iw_u.value; \ 110 #define SET_HIGH_WORD(d,v) \ argument 113 sh_u.value = (d); \ [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/gdtoa/ |
D | dtoa.c | 87 (d, mode, ndigits, decpt, sign, rve) in dtoa() 88 double d; int mode, ndigits, *decpt, *sign; char **rve; in dtoa() 90 (double d, int mode, int ndigits, int *decpt, int *sign, char **rve) 154 if (word0(d) & Sign_bit) { 157 word0(d) &= ~Sign_bit; /* clear sign bit */ 164 if ((word0(d) & Exp_mask) == Exp_mask) 166 if (word0(d) == 0x8000) 172 if (!word1(d) && !(word0(d) & 0xfffff)) 179 dval(d) += 0; /* normalize */ 181 if (!dval(d)) { [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/ |
D | udivmoddi4.c | 73 udwords d; in __udivmoddi4() local 74 d.all = b; in __udivmoddi4() 87 if (d.high == 0) in __udivmoddi4() 93 *rem = n.low % d.low; in __udivmoddi4() 94 return n.low / d.low; in __udivmoddi4() 104 if (d.low == 0) in __udivmoddi4() 106 if (d.high == 0) in __udivmoddi4() 112 *rem = n.high % d.low; in __udivmoddi4() 113 return n.high / d.low; in __udivmoddi4() 123 r.high = n.high % d.high; in __udivmoddi4() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/ |
D | firstsets.c | 17 dfa *d; in addfirstsets() local 22 d = &g->g_dfa[i]; in addfirstsets() 23 if (d->d_first == NULL) in addfirstsets() 24 calcfirstset(g, d); in addfirstsets() 29 calcfirstset(grammar *g, dfa *d) in calcfirstset() argument 44 printf("Calculate FIRST set for '%s'\n", d->d_name); in calcfirstset() 48 if (d->d_first == dummy) { in calcfirstset() 49 fprintf(stderr, "Left-recursion for '%s'\n", d->d_name); in calcfirstset() 52 if (d->d_first != NULL) { in calcfirstset() 54 d->d_name); in calcfirstset() [all …]
|
/device/generic/goldfish/camera/ |
D | EmulatedCamera2.cpp | 217 EmulatedCamera2* getInstance(const camera2_device_t *d) { in getInstance() argument 218 const EmulatedCamera2* cec = static_cast<const EmulatedCamera2*>(d); in getInstance() 222 int EmulatedCamera2::set_request_queue_src_ops(const camera2_device_t *d, in set_request_queue_src_ops() argument 224 EmulatedCamera2* ec = getInstance(d); in set_request_queue_src_ops() 229 int EmulatedCamera2::notify_request_queue_not_empty(const camera2_device_t *d) { in notify_request_queue_not_empty() argument 230 EmulatedCamera2* ec = getInstance(d); in notify_request_queue_not_empty() 234 int EmulatedCamera2::set_frame_queue_dst_ops(const camera2_device_t *d, in set_frame_queue_dst_ops() argument 236 EmulatedCamera2* ec = getInstance(d); in set_frame_queue_dst_ops() 241 int EmulatedCamera2::get_in_progress_count(const camera2_device_t *d) { in get_in_progress_count() argument 242 EmulatedCamera2* ec = getInstance(d); in get_in_progress_count() [all …]
|