projects
/
cython.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove trailing whitespace.
[cython.git]
/
tests
/
run
/
large_consts_T237.pyx
1
#def add_large_c():
2
# cdef unsigned long long val = 2**30 + 2**30
3
# return val
4
5
def add_large():
6
"""
7
>>> add_large() == 2147483647 + 2147483647
8
True
9
10
#>>> add_large_c() == 2147483647 + 2147483647
11
#True
12
"""
13
return 2147483647 + 2147483647
14
15
def add_large_pow():
16
"""
17
>>> add_large_pow() == 2**31 + 2**31
18
True
19
>>> add_large_pow() == 2**32
20
True
21
"""
22
return 2**31 + 2**31