Zachary S
10fde9eafe
Implement some more checks for ptr_guaranteed_cmp in consteval:
...
Pointers with different residues modulo their least common allocation alignment are never equal.
Pointers to the same static allocation are equal if and only if they have the same offset.
Strictly in-bounds (in-bounds and not one-past-the-end) pointers to different static allocations are always unequal.
A pointer cannot be equal to an integer if `ptr-int` cannot be null.
Also adds more tests for `ptr_guaranteed_cmp`.
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-08-23 12:09:07 -05:00
..
2025-07-29 14:17:48 +00:00
2025-07-31 19:56:11 +10:00
2025-07-31 19:58:04 +10:00
2025-08-03 21:56:59 +02:00
2025-08-03 21:56:56 +02:00
2025-08-03 05:26:43 +00:00
2025-07-31 14:19:27 +02:00
2025-07-30 19:55:07 +08:00
2025-07-31 14:19:27 +02:00
2025-08-01 20:04:59 +00:00
2025-08-02 21:07:46 +05:00
2025-08-23 12:09:07 -05:00
2025-07-31 19:58:04 +10:00
2025-08-02 11:29:04 +02:00
2025-08-01 00:38:20 -04:00
2025-08-02 05:09:31 +00:00
2025-08-01 20:04:59 +00:00
2025-08-03 21:56:56 +02:00
2025-08-03 09:29:54 +00:00
2025-07-31 14:19:27 +02:00
2025-08-03 21:57:00 +02:00
2025-07-31 19:58:04 +10:00
2025-07-31 19:58:04 +10:00
2025-08-03 05:26:43 +00:00
2025-08-02 01:59:11 +00:00
2025-07-31 22:35:22 +02:00
2025-08-01 09:47:47 +02:00
2025-07-31 17:19:39 +02:00
2025-07-31 14:19:27 +02:00
2025-07-31 14:19:27 +02:00
2025-08-03 21:56:59 +02:00
2025-08-03 21:57:02 +02:00
2025-08-02 11:24:24 +02:00
2025-08-02 11:24:26 +02:00
2025-07-31 14:19:27 +02:00
2025-08-03 15:33:31 +00:00
2025-07-31 17:19:39 +02:00
2025-08-01 20:04:59 +00:00
2025-07-31 19:58:04 +10:00
2025-08-02 09:23:36 +00:00
2025-07-31 19:58:04 +10:00
2025-07-31 19:58:04 +10:00
2025-07-31 14:19:27 +02:00
2025-08-04 11:24:39 +10:00
2025-07-31 19:58:04 +10:00
2025-08-02 11:24:24 +02:00
2025-07-31 19:58:04 +10:00
2025-08-01 09:59:03 +02:00
2025-08-02 11:24:24 +02:00
2025-08-03 05:26:43 +00:00
2025-08-01 04:06:21 +00:00
2025-07-31 19:58:04 +10:00
2025-07-31 17:38:28 +00:00
2025-08-03 21:56:58 +02:00