Skip to content
Merged
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
Next Next commit
Do not try to support GCC < 3.4
  • Loading branch information
niklasf committed Jun 8, 2020
commit fbaca66885fdfb64edcbe5ec45ec590405e98e79
3 changes: 2 additions & 1 deletion Include/internal/pycore_bitutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ _Py_bit_length(unsigned long x) {
if (x == 0) {
return 0;
}
Comment thread
niklasf marked this conversation as resolved.
Outdated
#if (defined(__clang__) || (defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ >= 4))))
#if (defined(__clang__) || defined(__GNUC__))
Comment thread
niklasf marked this conversation as resolved.
Outdated
// __builtin_clzl() is available since GCC 3.4.
// Undefined behavior for x == 0.
return sizeof(unsigned long) * 8 - __builtin_clzl(x);
#elif defined(_MSC_VER)
Expand Down