We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 316e05b commit 7050c5bCopy full SHA for 7050c5b
src/libcompiler_builtins/lib.rs
@@ -46,10 +46,6 @@ pub mod reimpls {
46
#[cfg(not(stage0))]
47
type i128_ = i128;
48
49
- fn unimplemented() -> ! {
50
- unsafe { ::core::intrinsics::abort() }
51
- }
52
-
53
macro_rules! ashl {
54
($a:expr, $b:expr, $ty:ty) => {{
55
let (a, b) = ($a, $b);
@@ -603,8 +599,7 @@ pub mod reimpls {
603
599
match a.signum() {
604
600
1 => u128_as_f64(a.uabs()),
605
601
0 => 0.0,
606
- -1 => -u128_as_f64(a.uabs()),
607
- _ => unimplemented()
602
+ _ => -u128_as_f64(a.uabs()),
608
}
609
610
@@ -613,8 +608,7 @@ pub mod reimpls {
613
614
1 => u128_as_f32(a.uabs()),
615
616
- -1 => -u128_as_f32(a.uabs()),
617
611
+ _ => -u128_as_f32(a.uabs()),
618
612
619
620
0 commit comments