rust/library/compiler-builtins/libm/src/math
Trevor Gross 5778643174 libm-test: Fix unintentional skips in binop_common
`binop_common` emits a `SKIP` that is intended to apply only to
`copysign`, but is instead applying to all binary operators. Correct the
general case but leave the currently-failing `maximum_num` tests as a
FIXME, to be resolved separately in [1].

Also simplify skip logic and NaN checking, and add a few more `copysign`
checks.

[1]: https://github.com/rust-lang/compiler-builtins/pull/939
2025-06-02 22:47:15 +00:00
..
arch aarch64: Add a note saying why we use frintx rather than frintn 2025-05-28 21:10:28 +00:00
generic cleanup: Use x.biteq(y) rather than x.to_bits() == y.to_bits() 2025-06-02 16:10:49 +00:00
support Fix new dead_code warnings from recent nightlies 2025-06-01 19:54:30 +00:00
acos.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
acosf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
acosh.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
acoshf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
asin.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
asinf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
asinh.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
asinhf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
atan.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
atan2.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
atan2f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
atanf.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
atanh.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
atanhf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
cbrt.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
cbrtf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
ceil.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
copysign.rs libm-test: Fix unintentional skips in binop_common 2025-06-02 22:47:15 +00:00
cos.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
cosf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
cosh.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
coshf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
erf.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
erff.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
exp.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
exp2.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
exp2f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
exp10.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
exp10f.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
expf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
expm1.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
expm1f.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
expo2.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
fabs.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
fdim.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
floor.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
fma.rs Use runtime feature detection for fma routines on x86 2025-05-03 14:17:49 -04:00
fmin_fmax.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
fminimum_fmaximum.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
fminimum_fmaximum_num.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
fmod.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
frexp.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
frexpf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
hypot.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
hypotf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
ilogb.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
ilogbf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
j0.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
j0f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
j1.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
j1f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
jn.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
jnf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
k_cos.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
k_cosf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
k_expo2.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
k_expo2f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
k_sin.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
k_sinf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
k_tan.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
k_tanf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
ldexp.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
lgamma.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
lgamma_r.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
lgammaf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
lgammaf_r.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
log.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
log1p.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
log1pf.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
log2.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
log2f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
log10.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
log10f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
logf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
mod.rs Refactor the fma modules 2025-04-29 19:09:50 -04:00
modf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
modff.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
nextafter.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
nextafterf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
pow.rs Resolve unnecessary_transmutes lints 2025-04-29 18:15:02 -04:00
powf.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
rem_pio2.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
rem_pio2_large.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
rem_pio2f.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
remainder.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
remainderf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
remquo.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
remquof.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
rint.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
round.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
roundeven.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
scalbn.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
sin.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
sincos.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
sincosf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
sinf.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
sinh.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
sinhf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
sqrt.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
tan.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
tanf.rs Run cargo fmt on all projects 2025-04-19 19:05:49 -04:00
tanh.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
tanhf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
tgamma.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
tgammaf.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00
trunc.rs libm: Flatten the libm/libm directory 2025-04-19 17:20:24 -04:00