Files
rust/tests/ui/resolve
Guillaume Gomez e6f17e4bbb Rollup merge of #153834 - N1ark:generic-float-intrinsics, r=tgross35,RalfJung
Merge `fabsf16/32/64/128` into `fabs::<F>`

Following [a small conversation on Zulip](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Float.20intrinsics/with/521501401) (and because I'd be interested in starting to contribute on Rust), I thought I'd give a try at merging the float intrinsics :)

This PR just merges `fabsf16`, `fabsf32`, `fabsf64`, `fabsf128`, as it felt like an easy first target.

Notes:
- I'm opening the PR for one intrinsic as it's probably easier if the shift is done one intrinsic at a time, but let me know if you'd rather I do several at a time to reduce the number of PRs.
- Currently this PR increases LOCs, despite being an attempt at simplifying the intrinsics/compilers. I believe this increase is a one time thing as I had to define new functions and move some things around, and hopefully future PRs/commits will reduce overall LoCs
- `fabsf32` and `fabsf64` are `#[rustc_intrinsic_const_stable_indirect]`, while `fabsf16` and `fabsf128` aren't; because `f32`/`f64` expect the function to be const, the generic version must be made indirectly stable too. We'd need to check with T-lang this change is ok; the only other intrinsics where there is such a mismatch is `minnum`, `maxnum` and `copysign`.
- I haven't touched libm because I'm not familiar with how it works; any guidance would be welcome!
2026-03-29 00:06:50 +01:00
..
2026-03-28 16:18:11 +09:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2025-11-03 16:24:36 +00:00
2025-11-27 11:19:00 -05:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-02-04 04:45:52 +00:00
2025-11-27 11:19:00 -05:00
2023-09-10 23:06:14 +02:00
2025-11-03 16:24:36 +00:00
2024-04-21 15:43:43 -03:00
2025-11-03 16:24:36 +00:00
2023-08-28 17:47:37 -03:00
2025-11-03 16:24:36 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-12-02 18:25:13 +00:00
2025-12-02 18:25:13 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2026-02-17 16:51:44 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-12-02 18:25:13 +00:00
2025-11-08 07:37:15 +01:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2025-12-02 18:25:13 +00:00
2025-12-02 18:25:13 +00:00
2025-12-02 18:25:13 +00:00
2025-12-02 18:25:13 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2026-02-17 16:51:44 +00:00
2025-12-02 11:24:03 +09:00
2025-06-11 17:49:03 +05:00
2025-06-11 17:49:03 +05:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2025-08-05 19:34:46 +05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-07-31 21:25:49 +05:00
2026-01-05 15:35:01 +09:00
2026-02-22 11:40:27 +01:00
2026-02-17 16:51:44 +00:00
2025-11-27 11:19:00 -05:00
2025-11-03 16:24:36 +00:00
2025-11-03 16:24:36 +00:00
2025-11-27 11:19:00 -05:00