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
7b26b409
Commit
7b26b409
authored
Apr 09, 2017
by
da-woods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduced duplication in complex abs builtin calls
parent
ea20f2a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+9
-16
No files found.
Cython/Compiler/Builtin.py
View file @
7b26b409
...
...
@@ -115,24 +115,17 @@ builtin_function_table = [
PyrexTypes
.
CFuncTypeArg
(
"arg"
,
PyrexTypes
.
c_longlong_type
,
None
)
],
is_strict_signature
=
True
,
nogil
=
True
)),
BuiltinFunction
(
'abs'
,
None
,
None
,
"__Pyx_c_abs{0}"
.
format
(
PyrexTypes
.
c_double_complex_type
.
funcsuffix
),
]
+
list
(
BuiltinFunction
(
'abs'
,
None
,
None
,
"__Pyx_c_abs{0}"
.
format
(
t
.
funcsuffix
),
func_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_double
_type
,
[
PyrexTypes
.
CFuncTypeArg
(
"arg"
,
PyrexTypes
.
c_double_complex_type
,
None
)
t
.
real
_type
,
[
PyrexTypes
.
CFuncTypeArg
(
"arg"
,
t
,
None
)
],
is_strict_signature
=
True
,
nogil
=
True
)),
BuiltinFunction
(
'abs'
,
None
,
None
,
"__Pyx_c_abs{0}"
.
format
(
PyrexTypes
.
c_float_complex_type
.
funcsuffix
),
func_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_float_type
,
[
PyrexTypes
.
CFuncTypeArg
(
"arg"
,
PyrexTypes
.
c_float_complex_type
,
None
)
],
is_strict_signature
=
True
,
nogil
=
True
)),
BuiltinFunction
(
'abs'
,
None
,
None
,
"__Pyx_c_abs{0}"
.
format
(
PyrexTypes
.
c_longdouble_complex_type
.
funcsuffix
),
func_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_longdouble_type
,
[
PyrexTypes
.
CFuncTypeArg
(
"arg"
,
PyrexTypes
.
c_longdouble_complex_type
,
None
)
],
is_strict_signature
=
True
,
nogil
=
True
)),
is_strict_signature
=
True
,
nogil
=
True
))
for
t
in
(
PyrexTypes
.
c_float_complex_type
,
PyrexTypes
.
c_double_complex_type
,
PyrexTypes
.
c_longdouble_complex_type
)
)
+
[
BuiltinFunction
(
'abs'
,
"O"
,
"O"
,
"PyNumber_Absolute"
),
#('all', "", "", ""),
#('any', "", "", ""),
...
...
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