8000 gh-127545: Replace _Py_ALIGN_AS(V) by _Py_ALIGNED_DEF(N, T) by encukou · Pull Request #135209 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127545: Replace _Py_ALIGN_AS(V) by _Py_ALIGNED_DEF(N, T) #135209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
8000
Clarify units
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
encukou and vstinner authored Jun 10, 2025
commit 6d7c805d769cf93318953d512f277479638bc0d1
2 changes: 1 addition & 1 deletion Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ whose size is determined when the object is allocated.

/* PyObjects are given a minimum alignment so that the least significant bits
* of an object pointer become available for other purposes.
* This must be an integer literal with the value (1 << _PyGC_PREV_SHIFT)
* This must be an integer literal with the value (1 << _PyGC_PREV_SHIFT), number of bytes.
*/
#define _PyObject_MIN_ALIGNMENT 4

Expand Down
2 changes: 1 addition & 1 deletion Include/pymacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

// _Py_ALIGNED_DEF(N, T): Define a variable/member with increased alignment
//
// `N`: the desired minimum alignment, an integer literal
// `N`: the desired minimum alignment, an integer literal, number of bytes
// `T`: the type of the defined variable
// (or a type with at least the defined variable's alignment)
//
Expand Down
Loading
0