Skip to content

Commit b4ca70e

Browse files
committed
fixup! Add support for f128 integer exponentiation
1 parent 66845d3 commit b4ca70e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

testcrate/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,12 @@ 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+
// #[cfg(target_env = "msvc")]
346+
pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 {
347+
compiler_builtins::float::div::__divtf3(a, b)
348+
}

testcrate/tests/float_pow.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,3 @@ 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-
74-
#[no_mangle]
75-
#[cfg(target_env = "msvc")]
76-
pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 {
77-
compiler_builtins::float::div::__divtf3(a, b)
78-
}

0 commit comments

Comments
 (0)