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
Gwenaël Samain
cython
Commits
b6a5a34b
Commit
b6a5a34b
authored
Apr 10, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comment.
parent
84fd317a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+2
-2
No files found.
Cython/Utility/Optimize.c
View file @
b6a5a34b
...
...
@@ -762,11 +762,11 @@ static CYTHON_INLINE {{c_ret_type}} __Pyx_PyInt_{{'' if ret_type.is_pyobject els
#if PyLong_SHIFT * {{_size}} < SIZEOF_LONG*8
else
if
(
uintval
>=
{{
_size
-
1
}}
UL
*
(
unsigned
long
)
PyLong_BASE
)
{
if
(
uintval
>=
{{
_size
}}
UL
*
(
unsigned
long
)
PyLong_BASE
)
{
//
int
value is between the maximum multiple digits that fit into a long completely and the maximum long value
//
C integer
value is between the maximum multiple digits that fit into a long completely and the maximum long value
unequal
=
(
size
!=
{{
_size
+
1
}})
||
(
digits
[
0
]
!=
(
uintval
&
(
unsigned
long
)
PyLong_MASK
))
{{
for
_i
in
range
(
1
,
_size
+
1
)}}
|
(
digits
[{{
_i
}}]
!=
((
uintval
>>
({{
_i
}}
*
PyLong_SHIFT
))
&
(
unsigned
long
)
PyLong_MASK
)){{
endfor
}};
}
else
{
//
int
value is within the maximum multiple digits that fit into a long completely
//
C integer
value is within the maximum multiple digits that fit into a long completely
unequal
=
(
size
!=
{{
_size
}})
||
(
digits
[
0
]
!=
(
uintval
&
(
unsigned
long
)
PyLong_MASK
))
{{
for
_i
in
range
(
1
,
_size
)}}
|
(
digits
[{{
_i
}}]
!=
((
uintval
>>
({{
_i
}}
*
PyLong_SHIFT
))
&
(
unsigned
long
)
PyLong_MASK
)){{
endfor
}};
}
...
...
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