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
3936bac0
Commit
3936bac0
authored
Apr 22, 2017
by
David Christenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow pointer access to 64-bit arrays
Add support for array.arrays of int64s or uint64s (type codes q/Q).
parent
53366b5f
Changes
3
Show 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 @
3936bac0
...
...
@@ -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 @
3936bac0
...
...
@@ -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 @
3936bac0
...
...
@@ -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