-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Changes from all commits
76924d1
515c0e8
8a761bf
2fdd174
d537d22
4e927c7
f7e9033
34dcb2c
File filter
Filter by extension
Conversations
Jump to
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)]]), | ||
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 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 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. 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.h
is 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.h
withPC/pyconfig.h
would 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).