Cody Tapscott
b5d5685a4e
compiler_rt: Implement floatXiYf/fixXfYi, incl f80
This change:
- Adds generic implementation of the float -> integer conversion
functions floatXiYf, including support for f80
- Updates the existing implementation of integer -> float conversion
fixXiYf to support f16 and f80
- Fixes the handling of the explicit integer bit in `__trunctfxf2`
- Combines the test cases for fixXfYi/floatXiYf into a single file
- Renames `fmodl` to `fmodq`, since it operates on 128-bit floats
The new implementation for floatXiYf has been benchmarked, and generally
provides equal or better performance versus the current implementations:
Throughput (MiB/s) - Before
| u32 | i32 | u64 | i64 | u128 | i128 |
-----|----------|----------|----------|----------|----------|----------|
f16 | none | none | none | none | none | none |
f32 | 2231.67 | 2001.19 | 1745.66 | 1405.77 | 2173.99 | 1874.63 |
f64 | 1407.17 | 1055.83 | 2911.68 | 2437.21 | 1676.05 | 1476.67 |
f80 | none | none | none | none | none | none |
f128 | 327.56 | 321.25 | 645.92 | 654.52 | 1153.56 | 1096.27 |
Throughput (MiB/s) - After
| u32 | i32 | u64 | i64 | u128 | i128 |
-----|----------|----------|----------|----------|----------|----------|
f16 | 1407.61 | 1637.25 | 3555.03 | 2594.56 | 3680.60 | 3063.34 |
f32 | 2101.36 | 2122.62 | 3225.46 | 3123.86 | 2860.05 | 1985.21 |
f64 | 1395.57 | 1314.87 | 2409.24 | 2196.30 | 2384.95 | 1908.15 |
f80 | 475.53 | 457.92 | 884.50 | 812.12 | 1475.27 | 1382.16 |
f128 | 359.60 | 350.91 | 723.08 | 706.80 | 1296.42 | 1198.87 |
2022-04-12 10:25:26 -07:00
..
2021-11-30 23:32:47 +00:00
2022-03-28 13:06:11 -07:00
2022-03-20 00:36:44 -07:00
2022-04-05 18:08:33 +03:00
2022-04-07 10:46:23 +02:00
2022-03-15 16:53:45 -04:00
2022-04-11 03:02:41 -04:00
2022-04-07 05:04:38 -06:00
2022-04-12 06:28:16 -04:00
2022-03-08 20:38:12 +02:00
2022-03-19 15:49:27 +02:00
2022-03-08 20:38:12 +02:00
2021-11-30 23:32:47 +00:00
2022-04-08 20:13:30 -06:00
2022-04-05 18:08:33 +03:00
2022-03-24 18:09:45 -07:00
2022-01-14 13:44:38 +01:00
2022-04-05 18:08:33 +03:00
2022-04-07 05:04:38 -06:00
2022-04-12 10:25:26 -07:00
2021-08-15 23:09:55 -07:00
2021-11-30 23:45:01 +00:00
2022-04-08 13:26:56 -05:00
2021-12-16 19:08:58 -08:00
2022-01-01 12:47:08 +00:00
2021-10-04 23:48:55 -07:00
2021-08-24 12:25:09 -07:00
2022-04-05 18:08:33 +03:00
2022-04-05 18:08:33 +03:00
2022-04-02 19:18:41 -07:00
2022-03-11 22:47:24 -07:00
2021-11-30 23:32:47 +00:00
2021-10-04 23:48:55 -07:00
2022-03-30 20:38:01 -07:00
2022-03-08 20:38:12 +02:00
2022-03-03 19:39:45 +01:00
2021-11-30 23:32:47 +00:00
2022-03-01 13:28:47 -05:00
2022-04-12 06:12:44 -04:00
2022-03-20 00:36:44 -07:00
2022-03-23 16:31:03 -04:00
2022-03-27 11:43:40 +03:00
2022-03-15 13:48:42 -04:00
2022-01-23 19:30:06 +01:00
2021-08-24 12:25:09 -07:00
2022-01-31 22:25:49 -07:00
2021-11-30 23:32:47 +00:00
2022-04-04 15:33:24 +03:00
2022-03-30 19:35:20 -04:00
2022-04-04 15:33:24 +03:00
2022-04-04 15:33:24 +03:00
2022-03-08 20:38:12 +02:00
2021-09-01 17:54:06 -07:00
2021-11-30 23:32:47 +00:00
2022-04-07 05:04:38 -06:00
2022-03-27 11:24:31 +03:00
2022-04-01 00:17:02 -07:00
2022-01-07 00:06:06 -05:00
2021-12-19 00:24:45 -05:00
2021-11-30 00:13:07 -07:00
2022-03-08 20:43:13 +02:00
2021-09-20 01:58:18 -04:00
2021-08-24 12:25:09 -07:00
2021-11-30 00:13:07 -07:00
2022-04-01 14:33:37 +02:00
2022-04-07 05:04:38 -06:00
2022-03-28 14:10:36 +03:00
2022-03-24 17:47:39 -07:00
2022-03-24 19:55:12 -07:00
2022-01-15 00:47:12 +01:00
2021-11-09 18:31:03 -07:00
2022-04-05 18:08:33 +03:00
2022-04-05 18:08:33 +03:00
2021-12-21 17:29:23 -08:00
2021-12-15 17:46:10 -08:00
2021-12-15 17:46:04 -08:00
2022-02-06 22:21:46 -07:00
2022-02-27 16:43:53 +02:00
2022-03-11 11:25:45 +02:00
2021-08-24 12:25:09 -07:00
2022-04-05 18:08:33 +03:00
2022-03-10 13:13:17 -05:00
2021-12-19 00:24:45 -05:00
2022-03-21 19:08:30 -07:00
2022-03-27 11:28:44 +03:00
2022-03-30 14:12:14 -04:00
2022-04-04 15:32:43 +03:00
2022-02-27 15:34:02 -05:00
2022-04-05 18:08:33 +03:00
2022-01-28 21:03:21 -05:00
2022-04-12 05:34:12 -04:00
2022-01-07 00:06:06 -05:00
2022-01-04 17:59:05 +01:00
2021-08-24 12:25:09 -07:00
2022-03-02 14:45:19 -05:00