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
Xavier Thompson
cython
Commits
0b711406
Commit
0b711406
authored
7 years ago
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move __Pyx_PySet_ContainsUnhashable into non-proto section
parent
b16c07dc
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+13
-9
No files found.
Cython/Utility/ObjectHandling.c
View file @
0b711406
...
...
@@ -1037,6 +1037,19 @@ static CYTHON_INLINE int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict,
/////////////// PySetContains.proto ///////////////
static
int
__Pyx_PySet_ContainsUnhashable
(
PyObject
*
set
,
PyObject
*
key
);
/* proto */
static
CYTHON_INLINE
int
__Pyx_PySet_ContainsTF
(
PyObject
*
key
,
PyObject
*
set
,
int
eq
)
{
int
result
=
PySet_Contains
(
set
,
key
);
if
(
unlikely
(
result
<
0
))
{
result
=
__Pyx_PySet_ContainsUnhashable
(
set
,
key
);
}
return
unlikely
(
result
<
0
)
?
result
:
(
result
==
(
eq
==
Py_EQ
));
}
/////////////// PySetContains ///////////////
static
int
__Pyx_PySet_ContainsUnhashable
(
PyObject
*
set
,
PyObject
*
key
)
{
int
result
=
-
1
;
if
(
PySet_Check
(
key
)
&&
PyErr_ExceptionMatches
(
PyExc_TypeError
))
{
...
...
@@ -1052,15 +1065,6 @@ static int __Pyx_PySet_ContainsUnhashable(PyObject *set, PyObject *key) {
return
result
;
}
static
CYTHON_INLINE
int
__Pyx_PySet_ContainsTF
(
PyObject
*
key
,
PyObject
*
set
,
int
eq
)
{
int
result
=
PySet_Contains
(
set
,
key
);
if
(
unlikely
(
result
<
0
))
{
result
=
__Pyx_PySet_ContainsUnhashable
(
set
,
key
);
}
return
unlikely
(
result
<
0
)
?
result
:
(
result
==
(
eq
==
Py_EQ
));
}
/////////////// PySequenceContains.proto ///////////////
static
CYTHON_INLINE
int
__Pyx_PySequence_ContainsTF
(
PyObject
*
item
,
PyObject
*
seq
,
int
eq
)
{
...
...
This diff is collapsed.
Click to expand it.
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