Niklas Fiekas
794e7d1ab2
bpo-29782: Consolidate _Py_Bit_Length() (GH-20739)
...
In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better
location. GH-20518 added a more appropriate header file for bit utilities. It
also shows how to properly use intrinsics. This allows reconsidering bpo-29782.
* Move the function to the new header.
* Changed return type to match __builtin_clzl() and reviewed usage.
* Use intrinsics where available.
* Pick a fallback implementation suitable for inlining.
2020-06-15 14:33:48 +02:00
..
2020-05-26 18:43:38 +03:00
2020-06-08 16:30:33 +02:00
2020-06-08 19:33:12 +02:00
2020-06-07 21:05:36 +09:00
2020-05-26 18:43:38 +03:00
2020-04-17 19:13:06 +02:00
2020-05-26 21:18:19 +09:00
2019-06-03 20:40:15 +02:00
2020-02-27 23:05:02 -08:00
2020-05-26 18:43:38 +03:00
2020-05-28 10:33:45 +03:00
2019-10-12 20:14:11 +01:00
2020-05-27 02:03:38 -07:00
2020-05-30 01:22:02 -07:00
2020-05-17 20:38:35 -07:00
2020-04-15 02:35:41 +02:00
2020-02-11 03:16:38 -08:00
2020-04-14 23:36:08 -07:00
2020-02-17 14:49:26 +01:00
2020-02-17 10:11:34 +01:00
2020-06-10 00:33:43 +09:00
2020-05-27 02:03:38 -07:00
2020-05-12 01:43:38 +02:00
2020-05-28 09:14:46 -07:00
2020-02-17 11:09:15 +01:00
2020-04-15 02:35:41 +02:00
2020-06-07 21:05:36 +09:00
2020-05-01 14:15:35 +02:00
2020-05-27 21:50:06 +02:00
2020-05-22 07:28:57 -07:00
2020-05-27 02:03:38 -07:00
2020-04-12 14:58:27 +03:00
2020-04-29 01:28:13 +02:00
2020-04-15 02:35:41 +02:00
2020-05-27 21:50:06 +02:00
2020-06-10 18:38:05 +02:00
2020-06-12 09:18:43 -07:00
2020-04-15 02:35:41 +02:00
2020-06-05 14:32:09 -07:00
2020-06-10 18:38:05 +02:00
2020-04-13 22:11:40 -05:00
2020-06-01 08:58:14 +02:00
2020-05-19 13:22:16 +01:00
2020-04-15 02:35:41 +02:00
2020-05-28 10:33:45 +03:00
2020-02-23 22:40:43 -08:00
2020-06-07 09:05:33 +02:00
2020-06-15 14:33:48 +02:00
2020-05-07 19:16:01 +02:00
2020-05-01 11:33:44 +02:00
2020-05-15 03:43:58 -07:00
2020-05-22 16:18:51 +02:00
2020-05-12 23:32:32 +01:00
2020-04-06 14:07:02 +02:00
2020-05-01 11:33:44 +02:00
2020-05-14 18:46:24 +02:00
2020-05-27 13:48:12 -07:00
2020-05-28 10:33:45 +03:00
2020-03-17 18:09:46 +01:00
2020-03-19 10:11:33 -07:00
2020-03-24 23:26:44 -05:00
2020-02-12 22:54:42 +01:00
2020-05-07 10:17:16 +09:00
2020-04-15 02:04:42 +02:00
2020-06-02 01:12:24 +09:00
2020-06-10 20:08:26 +02:00
2020-06-11 17:28:52 +02:00
2020-05-26 18:43:38 +03:00
2020-06-07 21:05:36 +09:00
2020-04-15 04:01:58 +02:00
2020-06-15 14:33:48 +02:00
2020-06-04 13:08:42 -07:00
2020-06-06 00:01:02 +09:00
2020-06-12 11:26:00 +09:00
2020-04-15 02:35:41 +02:00
2020-06-07 21:05:36 +09:00
2020-06-02 18:44:54 +02:00
2020-03-16 14:15:01 +01:00
2020-04-15 02:35:41 +02:00
2020-04-12 14:58:27 +03:00
2020-04-02 14:35:08 +02:00
2020-06-03 14:36:46 +02:00
2020-06-11 17:30:46 +01:00
2020-06-04 13:08:42 -07:00
2020-06-08 16:30:33 +02:00
2020-06-08 16:30:33 +02:00
2020-06-03 14:39:59 +02:00
2020-05-28 17:23:39 +02:00
2020-04-29 15:31:19 -07:00
2020-06-10 18:38:05 +02:00
2020-04-11 10:48:40 +03:00
2019-06-13 02:16:41 +02:00
2020-05-05 10:49:46 +09:00
2020-03-16 14:15:01 +01:00
2020-05-16 11:39:09 +02:00
2020-03-10 20:41:34 -07:00
2020-04-15 02:35:41 +02:00
2020-03-10 20:41:34 -07:00
2019-04-09 11:19:46 -07:00
2020-05-27 02:03:38 -07:00
2020-02-17 11:09:15 +01:00
2020-04-15 02:35:41 +02:00
2020-05-26 18:43:38 +03:00