OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:IntNum
(Results
1 - 3
of
3
) sorted by null
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/tests/
test_intnum.py
2
from yasm import
IntNum
17
self.assertEquals(i, int(
IntNum
(i)))
18
self.assertEquals(i, long(
IntNum
(i)))
22
self.assertRaises(OverflowError,
IntNum
, i)
36
self.assertRaises(ZeroDivisionError,
IntNum
(1).__div__, 0)
38
IntNum
(1) / 1 # make sure the above error is cleared
40
try:
IntNum
(1) / 0
45
a =
IntNum
(-234)
46
b =
IntNum
(432)
53
a =
IntNum
(-234
[
all
...]
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/
intnum.pxi
1
# Python bindings for Yasm: Pyrex input file for
intnum
.h
26
cdef class
IntNum
34
if isinstance(x,
IntNum
):
35
result =
IntNum
(x)
37
yasm_intnum_calc((<
IntNum
>result).intn, op, NULL)
39
# Coerce to
intnum
if not already
40
if isinstance(y,
IntNum
):
43
rhs =
IntNum
(y)
44
yasm_intnum_calc((<
IntNum
>result).intn, op, (<
IntNum
>rhs).intn
[
all
...]
expr.pxi
98
elif isinstance(value,
IntNum
):
99
return yasm_expr_int(yasm_intnum_copy((<
IntNum
>value).intn))
102
intnum
=
IntNum
(value)
106
retval = yasm_expr_int((<
IntNum
>
intnum
).intn)
107
(<
IntNum
>
intnum
).intn = NULL
134
raise ValueError("not an
intnum
expression")
Completed in 39 milliseconds