Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
fd627764
Commit
fd627764
authored
Apr 03, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend test
parent
f15d0b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/run/powop.pyx
tests/run/powop.pyx
+4
-0
No files found.
tests/run/powop.pyx
View file @
fd627764
...
@@ -105,10 +105,14 @@ def optimised_pow2(n):
...
@@ -105,10 +105,14 @@ def optimised_pow2(n):
1024
1024
>>> optimised_pow2(30)
>>> optimised_pow2(30)
1073741824
1073741824
>>> print(repr(optimised_pow2(31)).rstrip('L'))
2147483648
>>> print(repr(optimised_pow2(32)).rstrip('L'))
>>> print(repr(optimised_pow2(32)).rstrip('L'))
4294967296
4294967296
>>> print(repr(optimised_pow2(60)).rstrip('L'))
>>> print(repr(optimised_pow2(60)).rstrip('L'))
1152921504606846976
1152921504606846976
>>> print(repr(optimised_pow2(63)).rstrip('L'))
9223372036854775808
>>> print(repr(optimised_pow2(64)).rstrip('L'))
>>> print(repr(optimised_pow2(64)).rstrip('L'))
18446744073709551616
18446744073709551616
>>> print(repr(optimised_pow2(100)).rstrip('L'))
>>> print(repr(optimised_pow2(100)).rstrip('L'))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment