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
38b4649d
Commit
38b4649d
authored
Apr 25, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 'restrict' usage in g++
parent
f72eb896
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+11
-0
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+1
-5
No files found.
Cython/Utility/ModuleSetupCode.c
View file @
38b4649d
...
@@ -275,6 +275,17 @@
...
@@ -275,6 +275,17 @@
#endif
#endif
#endif
#endif
/* restrict */
#ifndef CYTHON_RESTRICT
#if defined(__GNUC__)
#define CYTHON_RESTRICT __restrict__
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define CYTHON_RESTRICT restrict
#else
#define CYTHON_RESTRICT
#endif
#endif
#ifdef NAN
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#define __PYX_NAN() ((float) NAN)
#else
#else
...
...
Cython/Utility/ObjectHandling.c
View file @
38b4649d
...
@@ -621,11 +621,7 @@ static CYTHON_INLINE void __Pyx_crop_slice(Py_ssize_t* _start, Py_ssize_t* _stop
...
@@ -621,11 +621,7 @@ static CYTHON_INLINE void __Pyx_crop_slice(Py_ssize_t* _start, Py_ssize_t* _stop
*
_stop
=
stop
;
*
_stop
=
stop
;
}
}
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
static
CYTHON_INLINE
void
__Pyx_copy_object_array
(
PyObject
**
CYTHON_RESTRICT
src
,
PyObject
**
CYTHON_RESTRICT
dest
,
Py_ssize_t
length
)
{
static
CYTHON_INLINE
void
__Pyx_copy_object_array
(
PyObject
**
restrict
src
,
PyObject
**
restrict
dest
,
Py_ssize_t
length
)
{
#else
static
CYTHON_INLINE
void
__Pyx_copy_object_array
(
PyObject
**
src
,
PyObject
**
dest
,
Py_ssize_t
length
)
{
#endif
PyObject
*
v
;
PyObject
*
v
;
Py_ssize_t
i
;
Py_ssize_t
i
;
for
(
i
=
0
;
i
<
length
;
i
++
)
{
for
(
i
=
0
;
i
<
length
;
i
++
)
{
...
...
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