Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
bpo-45569: Change PYLONG_BITS_IN_DIGIT default to 30#30497
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
76924d1515c0e88a761bf2fdd174d537d224e927c7f7e903334dcb2cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| The build now defaults to using 30-bit digits for Python integers. Previously | ||
| either 15-bit or 30-bit digits would be selected, depending on the platform. | ||
| 15-bit digits may still be selected using the ``--enable-big-digits=15`` option | ||
| to the ``configure`` script, or by defining ``PYLONG_BITS_IN_DIGIT`` in | ||
| ``pyconfig.h``. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -5039,7 +5039,7 @@ AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTL | ||
| # determine what size digit to use for Python's longs | ||
| AC_MSG_CHECKING([digit size for Python's longs]) | ||
| AC_ARG_ENABLE(big-digits, | ||
| AS_HELP_STRING([--enable-big-digits@<:@=15|30@:>@],[use big digits (30 or 15 bits) for Python longs (default is system-dependent)]]), | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have to update MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I've spent the last hour trying to get MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I have you covered: https://quay.io/repository/tiran/cpython_autoconf | ||
| AS_HELP_STRING([--enable-big-digits@<:@=15|30@:>@],[use big digits (30 or 15 bits) for Python longs (default is 30)]]), | ||
| [case $enable_big_digits in | ||
| yes) | ||
| enable_big_digits=30 ;; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pyconfig.his auto-generated and not user-editable. I suggest to remove the qualifier.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True; I was thinking of the Windows setup. Maybe replacing
pyconfig.hwithPC/pyconfig.hwould be enough?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OTOH, probably not worth worrying about explicitly specifying how to change things for Windows here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified (I hope).