Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 974) sorted by relevance

12345678910>>...39

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DArithmetic.py14 b = 3
17 c = a + b
18 c = b + c
20 c = a + b
21 c = b + c
24 c = a - b
25 c = b - c
27 c = b - c
29 c = a / b
30 c = b / a
[all …]
DConstructs.py11 a,b,c = 1,2,3
15 if b == 2:
18 b = 3
21 elif b == 3:
22 b = 2
30 if b == 2:
33 b = 3
36 elif b == 3:
37 b = 2
45 if b == 2:
[all …]
DTuples.py279 a,b,c,d,e,f = t
280 a,b,c,d,e,f = t
281 a,b,c,d,e,f = t
283 a,b,c = t[:3]
284 a,b,c = t[:3]
285 a,b,c = t[:3]
286 a,b,c = t[:3]
287 a,b,c = t[:3]
288 a,b,c = t[:3]
295 a,b,c,d,e,f = t
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_bytes.py44 b = self.type2test()
45 self.assertEqual(type(b), self.type2test)
46 self.assertEqual(b.__class__, self.type2test)
49 b = self.type2test()
50 self.assertEqual(len(b), 0)
51 self.assertRaises(IndexError, lambda: b[0])
52 self.assertRaises(IndexError, lambda: b[1])
53 self.assertRaises(IndexError, lambda: b[sys.maxint])
54 self.assertRaises(IndexError, lambda: b[sys.maxint+1])
55 self.assertRaises(IndexError, lambda: b[10**100])
[all …]
Dbuffer_tests.py17 self.assertFalse(self.marshal(b'').islower())
18 self.assertTrue(self.marshal(b'a').islower())
19 self.assertFalse(self.marshal(b'A').islower())
20 self.assertFalse(self.marshal(b'\n').islower())
21 self.assertTrue(self.marshal(b'abc').islower())
22 self.assertFalse(self.marshal(b'aBc').islower())
23 self.assertTrue(self.marshal(b'abc\n').islower())
24 self.assertRaises(TypeError, self.marshal(b'abc').islower, 42)
27 self.assertFalse(self.marshal(b'').isupper())
28 self.assertFalse(self.marshal(b'a').isupper())
[all …]
Dtest_memoryview.py16 source_bytes = b"abcdef"
28 b = tp(self._source)
29 oldrefcount = sys.getrefcount(b)
30 m = self._view(b)
31 self.assertEqual(m[0], item(b"a"))
33 self.assertEqual(m[5], item(b"f"))
34 self.assertEqual(m[-1], item(b"f"))
35 self.assertEqual(m[-6], item(b"a"))
46 self.assertEqual(sys.getrefcount(b), oldrefcount)
54 b = tp(self._source)
[all …]
Dtest_richcmp.py63 return Vector([a < b for a, b in zip(self.data, self.__cast(other))])
66 return Vector([a <= b for a, b in zip(self.data, self.__cast(other))])
69 return Vector([a == b for a, b in zip(self.data, self.__cast(other))])
72 return Vector([a != b for a, b in zip(self.data, self.__cast(other))])
75 return Vector([a > b for a, b in zip(self.data, self.__cast(other))])
78 return Vector([a >= b for a, b in zip(self.data, self.__cast(other))])
88 "lt": (lambda a,b: a< b, operator.lt, operator.__lt__),
89 "le": (lambda a,b: a<=b, operator.le, operator.__le__),
90 "eq": (lambda a,b: a==b, operator.eq, operator.__eq__),
91 "ne": (lambda a,b: a!=b, operator.ne, operator.__ne__),
[all …]
Dtest_funcattrs.py10 def b(): function
14 self.b = b
35 self.assertEqual(self.b.__module__, __name__)
38 self.b.known_attr = 7
39 self.assertIn('known_attr', dir(self.b),
55 self.assertNotEqual(self.b, duplicate)
60 test.func_code = self.b.func_code
64 self.assertIs(self.b.func_globals, globals())
65 self.cannot_set_attr(self.b, 'func_globals', 2, TypeError)
88 self.assertEqual(self.b.__name__, 'b')
[all …]
Dtest_io.py66 def write(self, b): argument
67 self._write_stack.append(bytes(b))
68 return len(b)
127 return b""
137 def write(self, b): argument
138 return MockRawIO.write(self, b) * 2
186 def readinto(self, b): argument
187 res = super(MockFileIO, self).readinto(b)
205 s = b"".join(self._write_stack)
222 def write(self, b): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
Dtest_fixers.py75 b = """if x <> y:
80 self.check(b, a)
83 b = """if x<>y:
88 self.check(b, a)
91 b = """if x<>y<>z:
96 self.check(b, a)
102 b = """x = d.has_key("x") or d.has_key("y")"""
104 self.check(b, a)
107 b = """x = a.b.c.d.has_key("x") ** 3"""
109 self.check(b, a)
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/support/set/
Dset.c137 register unsigned *b = &(bitmask[0]); local
139 if (t & *b) ++degree;
140 } while (++b < &(bitmask[WORDSIZE]));
149 set_or( set b, set c ) in set_or() argument
151 set_or( b, c ) in set_or()
152 set b; in set_or()
163 CHK(b); CHK(c);
165 if (b.n > c.n) {big= &b; m=b.n; n=c.n;} else {big= &c; m=c.n; n=b.n;}
171 p = b.setword;
172 endp = &(b.setword[n]);
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dmd5.c136 a = pms->abcd[0], b = pms->abcd[1], 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()
206 a = ROTATE_LEFT(t, s) + b 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()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dmd5.c136 a = pms->abcd[0], b = pms->abcd[1], 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()
206 a = ROTATE_LEFT(t, s) + b 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()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dfractions.py18 def gcd(a, b): argument
24 while b:
25 a, b = b, a%b
360 def forward(a, b): argument
361 if isinstance(b, (int, long, Fraction)):
362 return monomorphic_operator(a, b)
363 elif isinstance(b, float):
364 return fallback_operator(float(a), b)
365 elif isinstance(b, complex):
366 return fallback_operator(complex(a), b)
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/gdtoa/
Dsmisc.c50 Bigint *b; local
57 b = Balloc(k);
58 if (b == NULL)
60 b->x[0] = y9;
61 b->wds = 1;
63 b = Balloc(k+1);
64 if (b == NULL)
66 b->x[0] = y9 & 0xffff;
67 b->wds = (b->x[1] = y9 >> 16) ? 2 : 1;
74 b = multadd(b, 10, *s++ - '0');
[all …]
Dgethex.c44 Bigint *b; in gethex() local
119 b = Balloc(k); in gethex()
120 if (b == NULL) in gethex()
122 x = b->x; in gethex()
137 b->wds = n = (int)(x - b->x); in gethex()
141 x = b->x; in gethex()
144 if (any_on(b,n)) { in gethex()
149 if (k > 1 && any_on(b,k-1)) in gethex()
153 rshift(b, n); in gethex()
158 b = lshift(b, n); in gethex()
[all …]
Dgdtoa.c58 Bigint *b; in bitstob() local
71 b = Balloc(k); in bitstob()
72 if (b == NULL) in bitstob()
75 x = x0 = b->x; in bitstob()
85 b->wds = 0; in bitstob()
89 b->wds = i + 1; in bitstob()
90 *bbits = i*ULbits + 32 - hi0bits(b->x[i]); in bitstob()
92 return b; in bitstob()
171 Bigint *b, *b1, *delta, *mlo, *mhi, *mhi1, *S; in gdtoa() local
202 b = bitstob(bits, nbits = fpi->nbits, &bbits); in gdtoa()
[all …]
Dmisc.c160 (b, m, a) Bigint *b; int m, a; in multadd() argument
162 (Bigint *b, int m, int a) /* multiply by m and add a */
177 wds = b->wds;
178 x = b->x;
203 if (wds >= b->maxwds) {
204 b1 = Balloc(b->k+1);
206 Bfree(b);
209 Bcopy(b1, b);
210 Bfree(b);
211 b = b1;
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dpyarena.c83 block *b = (block *)malloc(sizeof(block) + size); in block_new() local
84 if (!b) in block_new()
86 b->ab_size = size; in block_new()
87 b->ab_mem = (void *)(b + 1); in block_new()
88 b->ab_next = NULL; in block_new()
89 b->ab_offset = ROUNDUP((Py_uintptr_t)(b->ab_mem)) - in block_new()
90 (Py_uintptr_t)(b->ab_mem); in block_new()
91 return b; in block_new()
95 block_free(block *b) { in block_free() argument
96 while (b) { in block_free()
[all …]
Ddtoa.c232 #define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \ argument
235 #define Storeinc(a,b,c) (((unsigned short *)a)[0] = (unsigned short)b, \ argument
447 multadd(Bigint *b, int m, int a) /* multiply by m and add a */ in multadd() argument
459 wds = b->wds; in multadd()
460 x = b->x; in multadd()
478 if (wds >= b->maxwds) { in multadd()
479 b1 = Balloc(b->k+1); in multadd()
481 Bfree(b); in multadd()
484 Bcopy(b1, b); in multadd()
485 Bfree(b); in multadd()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpyarena.c83 block *b = (block *)malloc(sizeof(block) + size); in block_new() local
84 if (!b) in block_new()
86 b->ab_size = size; in block_new()
87 b->ab_mem = (void *)(b + 1); in block_new()
88 b->ab_next = NULL; in block_new()
89 b->ab_offset = ROUNDUP((Py_uintptr_t)(b->ab_mem)) - in block_new()
90 (Py_uintptr_t)(b->ab_mem); in block_new()
91 return b; in block_new()
95 block_free(block *b) { in block_free() argument
96 while (b) { in block_free()
[all …]
Ddtoa.c215 #define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \ argument
218 #define Storeinc(a,b,c) (((unsigned short *)a)[0] = (unsigned short)b, \ argument
430 multadd(Bigint *b, int m, int a) /* multiply by m and add a */ in multadd() argument
442 wds = b->wds; in multadd()
443 x = b->x; in multadd()
461 if (wds >= b->maxwds) { in multadd()
462 b1 = Balloc(b->k+1); in multadd()
464 Bfree(b); in multadd()
467 Bcopy(b1, b); in multadd()
468 Bfree(b); in multadd()
[all …]
/device/google/wahoo/
Dinit.hardware.diag.rc.userdebug29 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag"
30 rm /config/usb_gadget/g1/configs/b.1/f1
31 rm /config/usb_gadget/g1/configs/b.1/f2
32 rm /config/usb_gadget/g1/configs/b.1/f3
33 rm /config/usb_gadget/g1/configs/b.1/f4
34 rm /config/usb_gadget/g1/configs/b.1/f5
37 symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
46 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_adb"
47 rm /config/usb_gadget/g1/configs/b.1/f1
48 rm /config/usb_gadget/g1/configs/b.1/f2
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/
DPciCommand.h151 #define PCI_READ_COMMAND_REGISTER(a,b) \ argument
152 PciOperateRegister (a, 0, PCI_COMMAND_OFFSET, EFI_GET_REGISTER, b)
163 #define PCI_SET_COMMAND_REGISTER(a,b) \ argument
164 PciOperateRegister (a, b, PCI_COMMAND_OFFSET, EFI_SET_REGISTER, NULL)
175 #define PCI_ENABLE_COMMAND_REGISTER(a,b) \ argument
176 PciOperateRegister (a, b, PCI_COMMAND_OFFSET, EFI_ENABLE_REGISTER, NULL)
187 #define PCI_DISABLE_COMMAND_REGISTER(a,b) \ argument
188 PciOperateRegister (a, b, PCI_COMMAND_OFFSET, EFI_DISABLE_REGISTER, NULL)
199 #define PCI_READ_BRIDGE_CONTROL_REGISTER(a,b) \ argument
200 PciOperateRegister (a, 0, PCI_BRIDGE_CONTROL_REGISTER_OFFSET, EFI_GET_REGISTER, b)
[all …]
/device/linaro/bootloader/arm-trusted-firmware/common/aarch64/
Dearly_exceptions.S53 b SynchronousExceptionSP0
60 b IrqSP0
67 b FiqSP0
74 b SErrorSP0
85 b SynchronousExceptionSPx
92 b IrqSPx
99 b FiqSPx
106 b SErrorSPx
117 b SynchronousExceptionA64
124 b IrqA64
[all …]

12345678910>>...39