Skip to content

Commit b2858f3

Browse files
committed
Add loongarch64 with d feature to f32::midpoint fast path
This patch enables the optimized implementation of `f32::midpoint` for `loongarch64` targets that support the `d`feature. Targets with reliable 64-bit float support can safely use the faster and more accurate computation via `f64`, avoiding the fallback branchy version.
1 parent 6f69710 commit b2858f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/num/f32.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ impl f32 {
999999
target_arch = "x86_64",
10001000
target_arch = "aarch64",
10011001
all(any(target_arch = "riscv32", target_arch = "riscv64"), target_feature = "d"),
1002+
all(target_arch = "loongarch64", target_feature = "d"),
10021003
all(target_arch = "arm", target_feature = "vfp2"),
10031004
target_arch = "wasm32",
10041005
target_arch = "wasm64",

0 commit comments

Comments
 (0)