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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
7400ccc4
Commit
7400ccc4
authored
Jun 03, 2017
by
scoder
Committed by
GitHub
Jun 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1681 from Noctem/int64_array
Allow pointer access to 64-bit arrays
parents
b2dc5c22
3936bac0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
Cython/Includes/cpython/array.pxd
Cython/Includes/cpython/array.pxd
+2
-0
Cython/Utility/arrayarray.h
Cython/Utility/arrayarray.h
+4
-0
docs/src/tutorial/array.rst
docs/src/tutorial/array.rst
+2
-0
No files found.
Cython/Includes/cpython/array.pxd
View file @
7400ccc4
...
...
@@ -75,6 +75,8 @@ cdef extern from *: # Hard-coded utility code hack.
char
*
as_chars
unsigned
long
*
as_ulongs
long
*
as_longs
unsigned
long
long
*
as_ulonglongs
long
long
*
as_longlongs
short
*
as_shorts
unsigned
short
*
as_ushorts
Py_UNICODE
*
as_pyunicodes
...
...
Cython/Utility/arrayarray.h
View file @
7400ccc4
...
...
@@ -47,6 +47,10 @@ struct arrayobject {
char
*
as_chars
;
unsigned
long
*
as_ulongs
;
long
*
as_longs
;
#if PY_MAJOR_VERSION >= 3
unsigned
long
long
*
as_ulonglongs
;
long
long
*
as_longlongs
;
#endif
short
*
as_shorts
;
unsigned
short
*
as_ushorts
;
Py_UNICODE
*
as_pyunicodes
;
...
...
docs/src/tutorial/array.rst
View file @
7400ccc4
...
...
@@ -132,6 +132,8 @@ Data fields
data.as_uints
data.as_longs
data.as_ulongs
data.as_longlongs # requires Python >=3
data.as_ulonglongs # requires Python >=3
data.as_floats
data.as_doubles
data.as_pyunicodes
...
...
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