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
Boxiang Sun
cython
Commits
28434b74
Commit
28434b74
authored
May 05, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Buffers: Checkpoint before making struct typeinfo flattened and removing need for stack
parent
2f79ca16
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
60 deletions
+93
-60
Cython/Compiler/Buffer.py
Cython/Compiler/Buffer.py
+79
-60
tests/run/buffmt.pyx
tests/run/buffmt.pyx
+14
-0
No files found.
Cython/Compiler/Buffer.py
View file @
28434b74
This diff is collapsed.
Click to expand it.
tests/run/buffmt.pyx
View file @
28434b74
...
...
@@ -17,6 +17,20 @@ if little_endian():
else
:
current_endian
=
'>'
other_endian
=
'<'
cdef
struct
align_of_double_helper
:
char
ch
double
d
cdef
struct
align_of_int_helper
:
char
ch
int
i
double_align
=
sizeof
(
align_of_double_helper
)
-
sizeof
(
double
)
int_align
=
sizeof
(
align_of_int_helper
)
-
sizeof
(
int
)
if
double_align
!=
8
:
raise
RuntimeError
(
"Alignment of double is %d on this system, please report to cython-dev for a testcase fix"
%
double_align
)
if
int_align
!=
4
:
raise
RuntimeError
(
"Alignment of int is %d on this system, please report to cython-dev for a testcase fix"
%
int_align
)
cdef
class
MockBuffer
:
cdef
Py_ssize_t
zero
...
...
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