Skip to content

Commit 5798bc3

Browse files
committed
fixup! Add support for f128 integer exponentiation
1 parent a5349eb commit 5798bc3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

testcrate/src/lib.rs

-11
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,3 @@ macro_rules! apfloat_fallback {
337337
$apfloat_op($($arg),+)
338338
}};
339339
}
340-
341-
// FIXME(f16_f128): MSVC is unable to link the mul and div symbols required for this test.
342-
// `__multf3` is now available in nightly, but `__divtf3` is not yet. Provide a fallback until
343-
// that happens.
344-
#[no_mangle]
345-
#[linkage = "weak"]
346-
#[cfg(target_env = "msvc")]
347-
#[cfg(all(feature = "mangled-names", not(feature = "no-f16-f128")))]
348-
pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 {
349-
compiler_builtins::float::div::__divtf3(a, b)
350-
}

testcrate/tests/float_pow.rs

+11
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,14 @@ pow! {
6868
pow! {
6969
f128, 1e-36, __powikf2, not(feature = "no-sys-f128");
7070
}
71+
72+
// FIXME(f16_f128): MSVC is unable to link the mul and div symbols required for this test.
73+
// `__multf3` is now available in nightly, but `__divtf3` is not yet. Provide a fallback until
74+
// that happens.
75+
#[no_mangle]
76+
#[linkage = "weak"]
77+
#[cfg(target_env = "msvc")]
78+
#[cfg(all(feature = "mangled-names", not(feature = "no-f16-f128")))]
79+
pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 {
80+
compiler_builtins::float::div::__divtf3(a, b)
81+
}

0 commit comments

Comments
 (0)