Rollup merge of #61647 - JohnTitor:use-stable-func, r=Centril
Use stable wrappers in f32/f64::signum Fixes #61638 r? @Centril
This commit is contained in:
commit
b3bdc24a89
2 changed files with 2 additions and 2 deletions
|
@ -188,7 +188,7 @@ impl f32 {
|
|||
if self.is_nan() {
|
||||
NAN
|
||||
} else {
|
||||
unsafe { intrinsics::copysignf32(1.0, self) }
|
||||
1.0_f32.copysign(self)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ impl f64 {
|
|||
if self.is_nan() {
|
||||
NAN
|
||||
} else {
|
||||
unsafe { intrinsics::copysignf64(1.0, self) }
|
||||
1.0_f64.copysign(self)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue