Skip to content

Commit

Permalink
fixup! Add support for f128 integer exponentiation
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Sep 26, 2024
1 parent a5349eb commit 5798bc3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions testcrate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,3 @@ macro_rules! apfloat_fallback {
$apfloat_op($($arg),+)
}};
}

// FIXME(f16_f128): MSVC is unable to link the mul and div symbols required for this test.
// `__multf3` is now available in nightly, but `__divtf3` is not yet. Provide a fallback until
// that happens.
#[no_mangle]
#[linkage = "weak"]
#[cfg(target_env = "msvc")]
#[cfg(all(feature = "mangled-names", not(feature = "no-f16-f128")))]
pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 {
compiler_builtins::float::div::__divtf3(a, b)
}
11 changes: 11 additions & 0 deletions testcrate/tests/float_pow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,14 @@ pow! {
pow! {
f128, 1e-36, __powikf2, not(feature = "no-sys-f128");
}

// FIXME(f16_f128): MSVC is unable to link the mul and div symbols required for this test.
// `__multf3` is now available in nightly, but `__divtf3` is not yet. Provide a fallback until
// that happens.
#[no_mangle]
#[linkage = "weak"]
#[cfg(target_env = "msvc")]
#[cfg(all(feature = "mangled-names", not(feature = "no-f16-f128")))]
pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 {
compiler_builtins::float::div::__divtf3(a, b)
}

0 comments on commit 5798bc3

Please sign in to comment.