Skip to content

Commit 53b79bd

Browse files
author
Dániel Buga
committed
Where did those ifs come from...
1 parent bc0db25 commit 53b79bd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/register/fpscr.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ impl Fpscr {
5050
/// Read the Alternative Half Precision bit
5151
#[inline]
5252
pub fn ahp(self) -> bool {
53-
if self.bits & (1 << 26) != 0
53+
self.bits & (1 << 26) != 0
5454
}
5555

5656
/// Read the Default NaN mode bit
5757
#[inline]
5858
pub fn dn(self) -> bool {
59-
if self.bits & (1 << 25) != 0
59+
self.bits & (1 << 25) != 0
6060
}
6161

6262
/// Read the Flush to Zero mode bit
6363
#[inline]
6464
pub fn fz(self) -> bool {
65-
if self.bits & (1 << 24) != 0
65+
self.bits & (1 << 24) != 0
6666
}
6767

6868
/// Read the Rounding Mode control field
@@ -79,37 +79,37 @@ impl Fpscr {
7979
/// Read the Input Denormal cumulative exception bit
8080
#[inline]
8181
pub fn idc(self) -> bool {
82-
if self.bits & (1 << 7) != 0
82+
self.bits & (1 << 7) != 0
8383
}
8484

8585
/// Read the Inexact cumulative exception bit
8686
#[inline]
8787
pub fn ixc(self) -> bool {
88-
if self.bits & (1 << 4) != 0
88+
self.bits & (1 << 4) != 0
8989
}
9090

9191
/// Read the Underflow cumulative exception bit
9292
#[inline]
9393
pub fn ufc(self) -> bool {
94-
if self.bits & (1 << 3) != 0
94+
self.bits & (1 << 3) != 0
9595
}
9696

9797
/// Read the Overflow cumulative exception bit
9898
#[inline]
9999
pub fn ofc(self) -> bool {
100-
if self.bits & (1 << 2) != 0
100+
self.bits & (1 << 2) != 0
101101
}
102102

103103
/// Read the Division by Zero cumulative exception bit
104104
#[inline]
105105
pub fn dzc(self) -> bool {
106-
if self.bits & (1 << 1) != 0
106+
self.bits & (1 << 1) != 0
107107
}
108108

109109
/// Read the Invalid Operation cumulative exception bit
110110
#[inline]
111111
pub fn ioc(self) -> bool {
112-
if self.bits & (1 << 0) != 0
112+
self.bits & (1 << 0) != 0
113113
}
114114
}
115115

0 commit comments

Comments
 (0)