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
0ed536d0
Commit
0ed536d0
authored
Jan 21, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid unused utility code for abs()
parent
43fe5b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+5
-1
No files found.
Cython/Compiler/Builtin.py
View file @
0ed536d0
...
...
@@ -24,6 +24,10 @@ static CYTHON_INLINE unsigned int __Pyx_abs_int(int x) {
return ((unsigned int)INT_MAX) + 1U;
return (unsigned int) abs(x);
}
'''
)
abs_long_utility_code
=
UtilityCode
(
proto
=
'''
static CYTHON_INLINE unsigned long __Pyx_abs_long(long x) {
if (unlikely(x == -LONG_MAX-1))
return ((unsigned long)LONG_MAX) + 1U;
...
...
@@ -201,7 +205,7 @@ builtin_function_table = [
],
is_strict_signature
=
True
)),
BuiltinFunction
(
'abs'
,
None
,
None
,
"__Pyx_abs_long"
,
utility_code
=
abs_
int
_utility_code
,
utility_code
=
abs_
long
_utility_code
,
func_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_ulong_type
,
[
PyrexTypes
.
CFuncTypeArg
(
"arg"
,
PyrexTypes
.
c_long_type
,
None
)
...
...
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