@@ -50,19 +50,19 @@ impl Fpscr {
50
50
/// Read the Alternative Half Precision bit
51
51
#[ inline]
52
52
pub fn ahp ( self ) -> bool {
53
- if self . bits & ( 1 << 26 ) != 0
53
+ self . bits & ( 1 << 26 ) != 0
54
54
}
55
55
56
56
/// Read the Default NaN mode bit
57
57
#[ inline]
58
58
pub fn dn ( self ) -> bool {
59
- if self . bits & ( 1 << 25 ) != 0
59
+ self . bits & ( 1 << 25 ) != 0
60
60
}
61
61
62
62
/// Read the Flush to Zero mode bit
63
63
#[ inline]
64
64
pub fn fz ( self ) -> bool {
65
- if self . bits & ( 1 << 24 ) != 0
65
+ self . bits & ( 1 << 24 ) != 0
66
66
}
67
67
68
68
/// Read the Rounding Mode control field
@@ -79,37 +79,37 @@ impl Fpscr {
79
79
/// Read the Input Denormal cumulative exception bit
80
80
#[ inline]
81
81
pub fn idc ( self ) -> bool {
82
- if self . bits & ( 1 << 7 ) != 0
82
+ self . bits & ( 1 << 7 ) != 0
83
83
}
84
84
85
85
/// Read the Inexact cumulative exception bit
86
86
#[ inline]
87
87
pub fn ixc ( self ) -> bool {
88
- if self . bits & ( 1 << 4 ) != 0
88
+ self . bits & ( 1 << 4 ) != 0
89
89
}
90
90
91
91
/// Read the Underflow cumulative exception bit
92
92
#[ inline]
93
93
pub fn ufc ( self ) -> bool {
94
- if self . bits & ( 1 << 3 ) != 0
94
+ self . bits & ( 1 << 3 ) != 0
95
95
}
96
96
97
97
/// Read the Overflow cumulative exception bit
98
98
#[ inline]
99
99
pub fn ofc ( self ) -> bool {
100
- if self . bits & ( 1 << 2 ) != 0
100
+ self . bits & ( 1 << 2 ) != 0
101
101
}
102
102
103
103
/// Read the Division by Zero cumulative exception bit
104
104
#[ inline]
105
105
pub fn dzc ( self ) -> bool {
106
- if self . bits & ( 1 << 1 ) != 0
106
+ self . bits & ( 1 << 1 ) != 0
107
107
}
108
108
109
109
/// Read the Invalid Operation cumulative exception bit
110
110
#[ inline]
111
111
pub fn ioc ( self ) -> bool {
112
- if self . bits & ( 1 << 0 ) != 0
112
+ self . bits & ( 1 << 0 ) != 0
113
113
}
114
114
}
115
115
0 commit comments