Skip to content

Commit bc0db25

Browse files
author
Dániel Buga
committed
Fix doc comments
1 parent 808aa0c commit bc0db25

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/register/fpscr.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct Fpscr {
77
bits: u32,
88
}
99

10-
//! Rounding mode
10+
/// Rounding mode
1111
#[derive(Clone, Copy, Debug)]
1212
pub enum RMode {
1313
Nearest,
@@ -23,49 +23,49 @@ impl Fpscr {
2323
self.bits
2424
}
2525

26-
//! Read the Negative condition code flag
26+
/// Read the Negative condition code flag
2727
#[inline]
2828
pub fn n(self) -> bool {
2929
self.bits & (1 << 31) != 0
3030
}
3131

32-
//! Read the Zero condition code flag
32+
/// Read the Zero condition code flag
3333
#[inline]
3434
pub fn z(self) -> bool {
3535
self.bits & (1 << 30) != 0
3636
}
3737

38-
//! Read the Carry condition code flag
38+
/// Read the Carry condition code flag
3939
#[inline]
4040
pub fn c(self) -> bool {
4141
self.bits & (1 << 29) != 0
4242
}
4343

44-
//! Read the Overflow condition code flag
44+
/// Read the Overflow condition code flag
4545
#[inline]
4646
pub fn v(self) -> bool {
4747
self.bits & (1 << 28) != 0
4848
}
4949

50-
//! Read the Alternative Half Precision bit
50+
/// Read the Alternative Half Precision bit
5151
#[inline]
5252
pub fn ahp(self) -> bool {
5353
if self.bits & (1 << 26) != 0
5454
}
5555

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

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

68-
//! Read the Rounding Mode control field
68+
/// Read the Rounding Mode control field
6969
#[inline]
7070
pub fn rmode(self) -> RMode {
7171
match self.bits & (3 << 22) {
@@ -76,37 +76,37 @@ impl Fpscr {
7676
}
7777
}
7878

79-
//! Read the Input Denormal cumulative exception bit
79+
/// Read the Input Denormal cumulative exception bit
8080
#[inline]
8181
pub fn idc(self) -> bool {
8282
if self.bits & (1 << 7) != 0
8383
}
8484

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

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

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

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

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

0 commit comments

Comments
 (0)