File tree 2 files changed +0
-26
lines changed
2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change 1
1
use float:: Float ;
2
2
use int:: Int ;
3
3
4
- macro_rules! fp_overflow {
5
- ( infinity, $fty: ty, $sign: expr) => {
6
- return {
7
- <$fty as Float >:: from_parts(
8
- $sign,
9
- <$fty as Float >:: exponent_max( ) as <$fty as Float >:: Int ,
10
- 0 as <$fty as Float >:: Int )
11
- }
12
- }
13
- }
14
-
15
4
macro_rules! int_to_float {
16
5
( $intrinsic: ident: $ity: ty, $fty: ty) => {
17
6
int_to_float!( $intrinsic: $ity, $fty, "C" ) ;
Original file line number Diff line number Diff line change @@ -78,21 +78,6 @@ macro_rules! urem {
78
78
}
79
79
}
80
80
81
- macro_rules! srem {
82
- ( $sty: ty, $a: expr, $b: expr) => {
83
- unsafe {
84
- let a = $a;
85
- let b = $b;
86
-
87
- if b == 0 || ( b == -1 && a == $sty:: min_value( ) ) {
88
- :: core:: intrinsics:: abort( )
89
- } else {
90
- :: core:: intrinsics:: unchecked_rem( a, b)
91
- }
92
- }
93
- }
94
- }
95
-
96
81
// Hack for LLVM expectations for ABI on windows
97
82
#[ cfg( all( windows, target_pointer_width="64" ) ) ]
98
83
#[ repr( simd) ]
You can’t perform that action at this time.
0 commit comments