Andrew Kelley
c8531faaf5
stage2: hash/eql of fixed-size floats use bit pattern
...
Zig guarantees the memory layout of f16, f32, f64, f80, and f128 which
means for generic function purposes, values of these types need to be
compared on the basis of their bits in memory. This means nan-packing
can be used with generic functions, for example.
For comptime_float, the sign is observable, whether it is nan is
observable, but not any more kinds of bit patterns are observable.
This fixes the std.fmt tests that check printing "-nan".
2022-06-30 00:54:03 -07:00
..
2022-06-30 00:02:00 -07:00
2022-06-30 00:02:00 -07:00
2022-06-28 09:19:01 +02:00
2022-06-28 14:22:13 -04:00
2022-04-15 23:32:26 +03:00
2022-06-30 00:02:00 -07:00
2022-06-28 18:38:25 -07:00
2022-04-27 16:45:23 -07:00
2022-04-22 08:19:51 -07:00
2022-06-29 17:21:32 +02:00
2021-11-26 19:59:33 -07:00
2022-05-29 12:04:50 +03:00
2022-06-11 23:49:33 +03:00
2022-06-28 14:16:22 -04:00
2022-06-09 20:00:59 -07:00
2022-04-26 16:48:56 -05:00
2021-11-30 23:32:47 +00:00
2020-12-07 17:27:09 -07:00
2022-05-13 16:43:59 -04:00
2022-04-06 11:50:23 -07:00
2022-04-18 23:06:49 -07:00
2022-04-02 19:18:41 -07:00
2022-05-10 16:40:48 -07:00
2022-01-02 13:16:17 -07:00
2022-01-02 13:16:17 -07:00
2022-06-28 20:52:31 +02:00
2022-06-30 00:02:00 -07:00
2022-06-29 17:21:32 +02:00
2022-04-29 22:50:34 -04:00
2022-06-27 14:31:54 -07:00
2022-06-17 16:38:59 -07:00
2022-05-06 22:41:00 -07:00
2022-06-30 00:02:00 -07:00
2022-04-18 23:06:49 -07:00
2022-04-26 17:52:21 -04:00
2022-06-28 17:25:26 -07:00
2022-06-29 22:06:27 -04:00
2022-06-07 19:33:40 +02:00
2022-06-30 00:02:00 -07:00
2022-04-22 08:19:51 -07:00
2022-06-27 17:12:45 -07:00
2022-06-28 13:28:05 +02:00
2022-06-17 16:38:59 -07:00
2022-01-07 00:06:06 -05:00
2022-06-29 16:59:18 +02:00
2022-06-11 23:49:33 +03:00
2022-06-28 16:35:34 -07:00
2022-06-30 00:54:03 -07:00
2022-06-17 16:38:59 -07:00
2021-11-30 23:32:47 +00:00
2021-09-24 13:39:20 -04:00
2021-09-07 21:49:08 -06:00
2020-09-21 21:14:01 -07:00
2021-09-01 17:54:07 -07:00
2021-08-15 18:06:29 -07:00
2021-08-15 18:06:29 -07:00
2021-08-15 18:06:29 -07:00
2022-05-29 12:04:50 +03:00
2022-05-29 12:04:50 +03:00
2021-09-30 21:38:04 -07:00
2022-04-27 12:22:20 -07:00
2022-04-27 12:22:20 -07:00
2022-06-11 23:49:33 +03:00