diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-04-23 07:47:48 +0000 |
|---|---|---|
| committer | Trevor Gross <t.gross35@gmail.com> | 2025-04-23 15:04:51 -0400 |
| commit | 99202af0758bbeb9909acf848de3cd968a41148f (patch) | |
| tree | 859351306dc714d9dbe28de7f3194c15cb51d74f /library/compiler-builtins/crates/util/src/main.rs | |
| parent | 1dd39e27f06d0028bc62452283cf00a2d932d981 (diff) | |
| download | rust-99202af0758bbeb9909acf848de3cd968a41148f.tar.gz rust-99202af0758bbeb9909acf848de3cd968a41148f.zip | |
libm-macros: Allow a way to bulk match f16 and f128 functions
These are never available in musl, so introduce easier ways to skip them rather than needing to exclude f16/f128 functions in three different places.
Diffstat (limited to 'library/compiler-builtins/crates/util/src/main.rs')
| -rw-r--r-- | library/compiler-builtins/crates/util/src/main.rs | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/library/compiler-builtins/crates/util/src/main.rs b/library/compiler-builtins/crates/util/src/main.rs index e7057869996..5972181531b 100644 --- a/library/compiler-builtins/crates/util/src/main.rs +++ b/library/compiler-builtins/crates/util/src/main.rs @@ -86,55 +86,19 @@ fn do_eval(basis: &str, op: &str, inputs: &[&str]) { emit_types: [CFn, RustFn, RustArgs], extra: (basis, op, inputs), fn_extra: match MACRO_FN_NAME { - ceilf128 - | ceilf16 - | copysignf128 - | copysignf16 - | fabsf128 - | fabsf16 - | fdimf128 - | fdimf16 - | floorf128 - | floorf16 - | fmaf128 - | fmaxf128 - | fmaxf16 - | fmaximum + // Not provided by musl + fmaximum | fmaximum_num | fmaximum_numf - | fmaximum_numf128 - | fmaximum_numf16 | fmaximumf - | fmaximumf128 - | fmaximumf16 - | fminf128 - | fminf16 | fminimum | fminimum_num | fminimum_numf - | fminimum_numf128 - | fminimum_numf16 | fminimumf - | fminimumf128 - | fminimumf16 - | fmodf128 - | fmodf16 - | ldexpf128 - | ldexpf16 - | rintf128 - | rintf16 | roundeven | roundevenf - | roundevenf128 - | roundevenf16 - | roundf128 - | roundf16 - | scalbnf128 - | scalbnf16 - | sqrtf128 - | sqrtf16 - | truncf128 - | truncf16 => None, + | ALL_F16 + | ALL_F128 => None, _ => Some(musl_math_sys::MACRO_FN_NAME) } } |
