Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.6k
Star
77.2k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
bpo-29782: Consolidate _Py_Bit_Length()
- #20739
#20739
Merged
vstinner
merged 21 commits into
python:master
python/cpython:master
from
niklasf:bpo-29782-msb
niklasf/cpython:bpo-29782-msb
Copy head branch name to clipboard
Jun 15, 2020
Conversation
Commits
21
(21)
Checks
Files changed
Merged
bpo-29782: Consolidate _Py_Bit_Length()
#20739
vstinner
merged 21 commits into
python:master
python/cpython:master
from
niklasf:bpo-29782-msb
niklasf/cpython:bpo-29782-msb
Copy head branch name to clipboard
Commits
Commits on Jun 8, 2020
bpo-29782: Consolidate _Py_Bit_Length()
Show description for 281009c
niklasf
committed
281009c
View commit details
Copy full SHA for 281009c
Browse repository at this point
Specify required gcc version for __builtin_clzl
niklasf
committed
65abb83
View commit details
Copy full SHA for 65abb83
Browse repository at this point
Fix _BitScanReverse usage
niklasf
committed
ce45ff2
View commit details
Copy full SHA for ce45ff2
Browse repository at this point
Document reason for include
niklasf
committed
6464ca6
View commit details
Copy full SHA for 6464ca6
Browse repository at this point
Ensure future compatibility
niklasf
committed
0bd4265
View commit details
Copy full SHA for 0bd4265
Browse repository at this point
Do not try to support GCC < 3.4
niklasf
committed
fbaca66
View commit details
Copy full SHA for fbaca66
Browse repository at this point
Coding style
niklasf
committed
436f68b
View commit details
Copy full SHA for 436f68b
Browse repository at this point
Fix comment indent
Show description for ac664bc
niklasf
and
vstinner
authored
ac664bc
View commit details
Copy full SHA for ac664bc
Browse repository at this point
Do not factor out x != 0
niklasf
committed
3279d17
View commit details
Copy full SHA for 3279d17
Browse repository at this point
Fix and move _Py_bit_length_digit()
niklasf
committed
525da3d
View commit details
Copy full SHA for 525da3d
Browse repository at this point
Add unit test for _Py_bit_length()
niklasf
committed
e487622
View commit details
Copy full SHA for e487622
Browse repository at this point
Remove useless cast in test
niklasf
committed
a338761
View commit details
Copy full SHA for a338761
Browse repository at this point
Use original implementation as fallback
niklasf
committed
5a146f7
View commit details
Copy full SHA for 5a146f7
Browse repository at this point
Re-enable intrinsics
niklasf
committed
8e3ce66
View commit details
Copy full SHA for 8e3ce66
Browse repository at this point
Explicitly cast sizeof
Show description for 86241f6
niklasf
and
vstinner
authored
86241f6
View commit details
Copy full SHA for 86241f6
Browse repository at this point
Better tests
Show description for c7ccbe2
niklasf
and
vstinner
authored
c7ccbe2
View commit details
Copy full SHA for c7ccbe2
Browse repository at this point
Explain Py_BUILD_ASSERT(sizeof(unsigned long) <= 4)
niklasf
committed
dfceaf2
View commit details
Copy full SHA for dfceaf2
Browse repository at this point
Use volatile so test actually runs intrinsic
niklasf
committed
fbf01ae
View commit details
Copy full SHA for fbf01ae
Browse repository at this point
Remove trailing spaces
niklasf
committed
991622b
View commit details
Copy full SHA for 991622b
Browse repository at this point
_Py_bit_length_digit -> bit_length_digit
niklasf
committed
462d995
View commit details
Copy full SHA for 462d995
Browse repository at this point
Fixup test expectations
niklasf
committed
98fc7a8
View commit details
Copy full SHA for 98fc7a8
Browse repository at this point
You can’t perform that action at this time.