Home
last modified time | relevance | path

Searched refs:int (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_int.py50 self.assertEqual(int(314), 314)
51 self.assertEqual(int(3.14), 3)
52 self.assertEqual(int(314L), 314)
54 self.assertEqual(int(-3.14), -3)
55 self.assertEqual(int(3.9), 3)
56 self.assertEqual(int(-3.9), -3)
57 self.assertEqual(int(3.5), 3)
58 self.assertEqual(int(-3.5), -3)
60 self.assertEqual(int("10",16), 16L)
62 self.assertEqual(int(unicode("10"),16), 16L)
[all …]
Dtest_bool.py19 self.assertRaises(TypeError, int.__new__, bool, 0)
43 self.assertEqual(int(False), 0)
44 self.assertIsNot(int(False), False)
45 self.assertEqual(int(True), 1)
46 self.assertIsNot(int(True), True)
107 self.assertEqual(b**i, int(b)**i)
108 self.assertIsNot(b**i, bool(int(b)**i))
112 self.assertIs(a&b, bool(int(a)&int(b)))
113 self.assertIs(a|b, bool(int(a)|int(b)))
114 self.assertIs(a^b, bool(int(a)^int(b)))
[all …]
Dtest_undocumented_details.py7 self.assertTrue(str < int or str > int)
8 self.assertTrue(int <= str or int >= str)
9 self.assertTrue(cmp(int, str) != 0)
10 self.assertTrue(int is int)
12 self.assertTrue(int != str)
Dtest_abstract_numbers.py10 self.assertTrue(issubclass(int, Integral))
11 self.assertTrue(issubclass(int, Complex))
13 self.assertEqual(7, int(7).real)
14 self.assertEqual(0, int(7).imag)
15 self.assertEqual(7, int(7).conjugate())
16 self.assertEqual(7, int(7).numerator)
17 self.assertEqual(1, int(7).denominator)
45 self.assertRaises(TypeError, int, c1)
Dtest_hash.py28 self.same_hash(int(1), long(1), float(1), complex(1),
29 int('1'), float('1.0'))
30 self.same_hash(int(-2**31), long(-2**31), float(-2**31))
31 self.same_hash(int(1-2**31), long(1-2**31), float(1-2**31))
32 self.same_hash(int(2**31-1), long(2**31-1), float(2**31-1))
34 self.same_hash(int(2**31), long(2**31), float(2**31))
35 self.same_hash(int(-2**63), long(-2**63), float(-2**63))
36 self.same_hash(int(1-2**63), long(1-2**63))
37 self.same_hash(int(2**63-1), long(2**63-1))
Dtest___future__.py39 a(isinstance(major, int), "%s major isn't int" % name)
40 a(isinstance(minor, int), "%s minor isn't int" % name)
41 a(isinstance(micro, int), "%s micro isn't int" % name)
46 a(isinstance(serial, int), "%s serial isn't int" % name)
58 a(isinstance(getattr(value, "compiler_flag"), int),
Dtest_sys.py232 self.assertIsInstance(v[0], int)
233 self.assertIsInstance(v[1], int)
234 self.assertIsInstance(v[2], int)
235 self.assertIsInstance(v[3], int)
238 self.assertIsInstance(v.major, int)
239 self.assertIsInstance(v.minor, int)
240 self.assertIsInstance(v.build, int)
241 self.assertIsInstance(v.platform, int)
243 self.assertIsInstance(v.service_pack_minor, int)
244 self.assertIsInstance(v.service_pack_major, int)
[all …]
Dtest_typechecks.py24 __subclass__ = set([int])
35 self.assertEqual(Integer.__subclasscheck__(int), True)
39 self.assertEqual(issubclass(int, Integer), True)
40 self.assertEqual(issubclass(int, (Integer,)), True)
65 self.assertEqual(issubclass(int, SubInt), False)
66 self.assertEqual(issubclass(int, (SubInt,)), False)
84 self.assertFalse(issubclass(int, X))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Duuid.py102 int=None, version=None): argument
128 if [hex, bytes, bytes_le, fields, int].count(None) != 4:
135 int = long(hex, 16)
145 int = long(('%02x'*16) % tuple(map(ord, bytes)), 16)
164 int = ((time_low << 96L) | (time_mid << 80L) |
166 if int is not None:
167 if not 0 <= int < 1<<128L:
173 int &= ~(0xc000 << 48L)
174 int |= 0x8000 << 48L
176 int &= ~(0xf000 << 64L)
[all …]
Drandom.py154 n = int(_hashlib.new('sha512', s).hexdigest(), 16)
173 def randrange(self, start, stop=None, step=1, int=int, default=None, argument
184 istart = int(start)
191 return int(self.random() * istart)
195 istop = int(stop)
214 return int(istart + self._randbelow(width))
215 return int(istart + int(self.random()*width))
220 istep = int(step)
235 return istart + istep*int(self.random() * n)
243 def _randbelow(self, n, _log=_log, int=int, _maxwidth=1L<<BPF, argument
[all …]
D_strptime.py348 year = int(found_dict['y'])
357 year = int(found_dict['Y'])
359 month = int(found_dict['m'])
365 day = int(found_dict['d'])
367 hour = int(found_dict['H'])
369 hour = int(found_dict['I'])
385 minute = int(found_dict['M'])
387 second = int(found_dict['S'])
392 fraction = int(s)
398 weekday = int(found_dict['w'])
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenFds/
DCapsuleData.py197 int(self.Version,16),
198 int(Guid[0], 16),
199 int(Guid[1], 16),
200 int(Guid[2], 16),
201 int(Guid[3][-4:-2], 16),
202 int(Guid[3][-2:], 16),
203 int(Guid[4][-12:-10], 16),
204 int(Guid[4][-10:-8], 16),
205 int(Guid[4][-8:-6], 16),
206 int(Guid[4][-6:-4], 16),
[all …]
DFv.py342 … + pack('=LHHBBBBBBBB', int(Guid[0], 16), int(Guid[1], 16), int(Guid[2], 16),
343int(Guid[3][-4:-2], 16), int(Guid[3][-2:], 16), int(Guid[4][-12:-10], 16),
344int(Guid[4][-10:-8], 16), int(Guid[4][-8:-6], 16), int(Guid[4][-6:-4], 16),
345 int(Guid[4][-4:-2], 16), int(Guid[4][-2:], 16))
365 Buffer += pack('HH', (Size + 4), int(self.FvExtEntryTypeValue[Index], 16))
374 Buffer += pack('HH', (Size + 4), int(self.FvExtEntryTypeValue[Index], 16))
376 Buffer += pack('B', int(ByteList[Index1], 16))
380 int(Guid[0], 16),
381 int(Guid[1], 16),
382 int(Guid[2], 16),
[all …]
/device/generic/goldfish-opengl/tests/ut_rendercontrol_enc/
Dut_rendercontrol.in1 GL_ENTRY(int, createContext, uint32_t pid, uint32_t handle, uint32_t shareCtx, int version)
2 GL_ENTRY(int, createSurface, uint32_t pid, uint32_t handle)
3 GL_ENTRY(int, makeCurrentContext, uint32_t pid, uint32_t drawSurface, uint32_t readSurface, uint32_…
5 GL_ENTRY(int, destroyContext, uint32_t pid, uint32_t handle)
6 GL_ENTRY(int, destroySurface, uint32_t pid, uint32_t handle)
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/
Dedk2_debugger.py30int(build.PCDs['gArmTokenSpaceGuid']['PcdFvBaseAddress'][0],16),
31 int(build.PCDs['gArmTokenSpaceGuid']['PcdFvSize'][0],16))
107 …if self.build.PCDs['gArmTokenSpaceGuid'].has_key('PcdFvSize') and int(self.build.PCDs['gArmTokenSp…
108 …fvs.append((int(self.build.PCDs['gArmTokenSpaceGuid']['PcdFvBaseAddress'][0],16),int(self.build.PC…
109 …if self.build.PCDs['gArmTokenSpaceGuid'].has_key('PcdSecureFvSize') and int(self.build.PCDs['gArmT…
110 …fvs.append((int(self.build.PCDs['gArmTokenSpaceGuid']['PcdSecureFvBaseAddress'][0],16),int(self.bu…
111 …if self.build.PCDs['gArmTokenSpaceGuid'].has_key('PcdHypFvSize') and int(self.build.PCDs['gArmToke…
112 …fvs.append((int(self.build.PCDs['gArmTokenSpaceGuid']['PcdHypFvBaseAddress'][0],16),int(self.build…
114 sysmem_base = int(self.build.PCDs['gArmTokenSpaceGuid']['PcdSystemMemoryBase'][0],16)
115 sysmem_size = int(self.build.PCDs['gArmTokenSpaceGuid']['PcdSystemMemorySize'][0],16)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dunbirthday.py14 year = int(sys.argv[1])
16 year = int(raw_input('In which year were you born? '))
26 month = int(sys.argv[2])
28 month = int(raw_input('And in which month? (1-12) '))
34 day = int(sys.argv[3])
36 day = int(raw_input('And on what day of that month? (1-31) '))
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/
Ddlg_p.g45 int action_no = 0; /* keep track of actions outputed */
46 int nfa_allocated = 0; /* keeps track of number of nfa nodes */
53 int flag_paren = FALSE;
54 int flag_brace = FALSE;
55 int mode_counter = 0; /* keep track of number of %%names */
60 int func_action; /* should actions be turned into functions?*/
61 int lex_mode_counter = 0; /* keeps track of the number of %%names */
66 int lexMember = 0; /* <<%%lexmemeber ...>> MR1 */
67 int lexAction = 0; /* <<%%lexaction ...>> MR1 */
68 int parserClass = 0; /* <<%%parserclass ...>> MR1 */
[all …]
Dparser.dlg38 int func_action; /* should actions be turned into functions?*/
39 int lex_mode_counter = 0; /* keeps track of the number of %%names */
44 int lexMember = 0; /* <<%%lexmemeber ...>> MR1 */
45 int lexAction = 0; /* <<%%lexaction ...>> MR1 */
46 int parserClass = 0; /* <<%%parserclass ...>> MR1 */
47 int lexPrefix = 0; /* <<%%lexprefix ...>> MR1 */
50 int firstLexMember=1; /* MR1 */
53 void xxputc(int c) { /* MR1 */
56 int c; /* MR1 */
225 {int t; sscanf(&zzlextext[1],"%o",&t); zzlextext[0] = t;}
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenPatchPcdTable/
DGenPatchPcdTable.py90 …bpcds.append((m.groups(0)[1], int(m.groups(0)[0], 16) , int(sections[-1][1], 16), sections[-1][0]))
101 redirection = int(section[1], 16) - efisec[1]
136 … secs.append([int(sec_no, 16), int(sec_start, 16), int(sec_length, 16), sec_name, sec_class])
141 sec_no = int(sec_no, 16)
142 sym_offset = int(sym_offset, 16)
143 vir_addr = int(vir_addr, 16)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
Dconv.py77 number = int(number)
135 n, m, k = map(int, mo.groups())
141 i, j = map(int, mo.groups())
149 s, t = map(int, mo.groups())
156 k, n, m = map(int, mo.groups())
170 ndfas = int(mo.group(1))
177 number, x, y, z = map(int, mo.group(1, 3, 4, 5))
203 nlabels = int(mo.group(1))
209 x = int(x)
225 ndfas = int(mo.group(1))
[all …]
/device/linaro/bootloader/edk2/CryptoPkg/Library/OpensslLib/
DEDKII_openssl-1.0.2e.patch5 int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
11 BIO *BIO_new_fp(FILE *stream, int close_flag);
35 +BIO *BIO_new_fp(FILE *stream, int close_flag)
84 + int bufsiz;
85 int i, j = 0, k, ret = 0;
146 int RAND_poll(void)
157 static int rsa_cms_sign(CMS_SignerInfo *si);
158 static int rsa_cms_verify(CMS_SignerInfo *si);
159 static int rsa_cms_decrypt(CMS_RecipientInfo *ri);
160 static int rsa_cms_encrypt(CMS_RecipientInfo *ri);
[all …]
/device/generic/goldfish-opengl/system/renderControl_enc/
DrenderControl.in17 GL_ENTRY(int, rcFlushWindowColorBuffer, uint32_t windowSurface)
23 GL_ENTRY(EGLint, rcColorBufferCacheFlush, uint32_t colorbuffer, EGLint postCount,int forRead)
25 GL_ENTRY(int, rcUpdateColorBuffer, uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint heigh…
26 GL_ENTRY(int, rcOpenColorBuffer2, uint32_t colorbuffer)
28 GL_ENTRY(int, rcDestroyClientImage, uint32_t image)
31 GL_ENTRY(int, rcOpenColorBuffer2Puid, uint32_t colorbuffer, uint64_t puid)
37 GL_ENTRY(int, rcDestroyClientImagePuid, uint32_t image, uint64_t puid)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
DMisc.py98 … varoffset.append((varname, int(m.groups(0)[0], 16) , int(sections[-1][1], 16), sections[-1][0]))
111 redirection = int(section[1], 16) - efisec[1]
142 … secs.append([int(sec_no, 16), int(sec_start, 16), int(sec_length, 16), sec_name, sec_class])
148 sec_no = int(sec_no, 16)
149 sym_offset = int(sym_offset, 16)
150 vir_addr = int(vir_addr, 16)
318 int(guidValueList[3], 16),
319 int(guidValueList[2], 16),
320 int(guidValueList[1], 16),
321 int(guidValueList[0], 16),
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DRange.py13 return 0, int(arglist[0]), 1
15 return int(arglist[0]), int(arglist[1]), 1
19 return tuple(int(x) for x in arglist)
/device/linaro/bootloader/edk2/IntelFspPkg/Tools/
DGenCfgOpt.py108 MemUpdInitOffsetValue = int(Match.group(5), 0)
111 SiUpdInitOffsetValue = int(Match.group(5), 0)
114 MemUpdInitOffset = int(Match.group(3), 0)
117 SiUpdInitOffset = int(Match.group(3), 0)
183 value = int(var, 16)
185 value = int(var, 10)
215 return "%d" % (not self.normNumber(int(op)))
278 value = "%d" % self.normNumber(int(value) & int(result))
319 return int(value)
429 value = int(each, 16)
[all …]

12345678910>>...17