Niles Salter
ff5850183e
[priority_deque] simplify & optimize isMinLayer
...
LLVM has trouble compiling the old implementation, (presumably) because `leading_zeros` is thought to be a `u7` rather than a `u6`, which means `63 - clz` is not equivalent to `63 ^ clz`, which means it can't deduce that the final condition can simply be flipped. (I am assuming `usize` is a `u64` here for ease of understanding, but it's the same for any power of 2)
https://zig.godbolt.org/z/Pbj4P7ob3
The new version is slightly better too because `isMinLayer(maxInt(usize))` is now well-defined behavior.
2023-06-22 01:57:28 -07:00
..
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2022-05-09 18:51:46 +02:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-22 11:44:46 +03:00
2023-06-19 12:34:42 -07:00
2023-06-20 19:01:34 -04:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-05-08 10:59:06 +03:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-16 13:44:09 -07:00
2023-06-19 12:34:42 -07:00
2023-04-28 13:24:43 -07:00
2023-06-20 10:56:23 -07:00
2023-06-19 12:34:42 -07:00
2022-01-01 12:47:08 +00:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-10 20:47:54 -07:00
2023-06-16 13:44:09 -07:00
2023-04-21 23:08:48 -04:00
2023-06-13 23:46:58 +06:00
2023-06-19 12:34:42 -07:00
2023-05-07 15:55:21 +10:00
2023-04-22 13:09:15 +03:00
2023-04-28 13:24:43 -07:00
2023-06-17 13:17:34 -07:00
2023-06-17 13:17:34 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-02-22 00:11:20 +11:00
2023-05-23 17:55:59 -07:00
2023-05-22 16:11:06 +02:00
2023-06-13 23:46:58 +06:00
2023-06-19 12:34:42 -07:00
2023-06-12 14:22:45 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 22:36:24 -07:00
2023-06-19 12:34:42 -07:00
2021-09-01 17:54:06 -07:00
2023-06-16 13:44:09 -07:00
2023-06-19 22:36:24 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-10 20:42:30 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-01-11 15:39:48 -08:00
2023-06-19 12:34:42 -07:00
2023-06-19 11:21:37 -04:00
2023-06-19 12:34:42 -07:00
2023-04-30 18:16:04 -07:00
2023-06-19 12:34:42 -07:00
2023-04-30 18:16:04 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-02-18 19:17:21 -07:00
2023-06-20 12:55:38 -04:00
2023-04-30 18:16:04 -07:00
2023-06-19 12:34:42 -07:00
2023-06-22 01:57:28 -07:00
2023-02-18 19:17:21 -07:00
2023-06-19 12:34:42 -07:00
2023-04-28 13:24:43 -07:00
2023-06-16 13:44:09 -07:00
2023-06-19 12:34:42 -07:00
2023-04-28 13:24:43 -07:00
2023-06-17 13:17:34 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-03-17 17:50:25 +01:00
2023-06-19 12:34:42 -07:00
2023-06-20 08:27:55 -07:00
2023-06-17 12:49:13 -07:00
2023-06-19 12:34:42 -07:00
2023-04-30 18:16:04 -07:00
2023-06-19 12:34:42 -07:00
2023-04-28 13:24:43 -07:00
2023-06-13 23:46:58 +06:00
2023-06-16 13:44:09 -07:00
2023-06-19 12:34:42 -07:00
2023-06-19 12:34:42 -07:00
2023-06-17 13:17:34 -07:00