rust/library/core/src/num
bors 39b7669347 Auto merge of #130220 - RalfJung:float-classify, r=workingjubilee
simplify float::classify logic

I played around with the float-classify test in the hope of triggering x87 bugs by strategically adding `black_box`, and still the exact expression `@beetrees` suggested [here](https://github.com/rust-lang/rust/pull/129835#issuecomment-2325661597) remains the only case I found where we get the wrong result on x87. Curiously, this bug only occurs when MIR optimizations are enabled -- probably the extra inlining that does is required for LLVM to hit the right "bad" case in the backend. But even for that case, it makes no difference whether `classify` is implemented in the simple bit-pattern-based version or the more complicated version we had before.

Without even a single testcase that can distinguish our `classify` from the naive version, I suggest we switch to the naive version.
2024-09-16 03:36:03 +00:00
..
dec2flt Reformat use declarations. 2024-07-29 08:26:52 +10:00
flt2dec Remove unnecessary constants from flt2dec dragon 2024-08-03 08:49:38 -07:00
shells diagnostic items for legacy numeric constants 2024-02-18 12:08:16 -07:00
bignum.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
diy_float.rs Fix assert in diy_float 2021-07-27 16:02:35 -04:00
error.rs replace placeholder version 2024-09-03 20:54:02 +01:00
f16.rs simplify float::classify logic 2024-09-12 08:08:38 +02:00
f32.rs simplify float::classify logic 2024-09-12 08:08:38 +02:00
f64.rs simplify float::classify logic 2024-09-12 08:08:38 +02:00
f128.rs simplify float::classify logic 2024-09-12 08:08:38 +02:00
fmt.rs Fix a bunch of typos 2021-12-14 16:40:43 +01:00
int_log10.rs Have a function for the log(0) panic, rather than copy-pasting the string constant 2023-02-10 12:50:17 -08:00
int_macros.rs better implementation of signed div_floor/ceil 2024-09-05 22:50:41 +02:00
int_sqrt.rs Speed up checked_isqrt and isqrt methods 2024-08-28 23:07:04 -04:00
mod.rs add FIXME(const-hack) 2024-09-08 23:08:40 +02:00
nonzero.rs Speed up checked_isqrt and isqrt methods 2024-08-28 23:07:04 -04:00
overflow_panic.rs reword panic comments and add spaces to unlikely branches 2023-11-28 08:34:55 -08:00
saturating.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
uint_macros.rs Speed up checked_isqrt and isqrt methods 2024-08-28 23:07:04 -04:00
wrapping.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00