@@ -7,7 +7,7 @@ pub struct Fpscr {
7
7
bits : u32 ,
8
8
}
9
9
10
- //! Rounding mode
10
+ /// Rounding mode
11
11
#[ derive( Clone , Copy , Debug ) ]
12
12
pub enum RMode {
13
13
Nearest ,
@@ -23,49 +23,49 @@ impl Fpscr {
23
23
self . bits
24
24
}
25
25
26
- //! Read the Negative condition code flag
26
+ /// Read the Negative condition code flag
27
27
#[ inline]
28
28
pub fn n ( self ) -> bool {
29
29
self . bits & ( 1 << 31 ) != 0
30
30
}
31
31
32
- //! Read the Zero condition code flag
32
+ /// Read the Zero condition code flag
33
33
#[ inline]
34
34
pub fn z ( self ) -> bool {
35
35
self . bits & ( 1 << 30 ) != 0
36
36
}
37
37
38
- //! Read the Carry condition code flag
38
+ /// Read the Carry condition code flag
39
39
#[ inline]
40
40
pub fn c ( self ) -> bool {
41
41
self . bits & ( 1 << 29 ) != 0
42
42
}
43
43
44
- //! Read the Overflow condition code flag
44
+ /// Read the Overflow condition code flag
45
45
#[ inline]
46
46
pub fn v ( self ) -> bool {
47
47
self . bits & ( 1 << 28 ) != 0
48
48
}
49
49
50
- //! Read the Alternative Half Precision bit
50
+ /// Read the Alternative Half Precision bit
51
51
#[ inline]
52
52
pub fn ahp ( self ) -> bool {
53
53
if self . bits & ( 1 << 26 ) != 0
54
54
}
55
55
56
- //! Read the Default NaN mode bit
56
+ /// Read the Default NaN mode bit
57
57
#[ inline]
58
58
pub fn dn ( self ) -> bool {
59
59
if self . bits & ( 1 << 25 ) != 0
60
60
}
61
61
62
- //! Read the Flush to Zero mode bit
62
+ /// Read the Flush to Zero mode bit
63
63
#[ inline]
64
64
pub fn fz ( self ) -> bool {
65
65
if self . bits & ( 1 << 24 ) != 0
66
66
}
67
67
68
- //! Read the Rounding Mode control field
68
+ /// Read the Rounding Mode control field
69
69
#[ inline]
70
70
pub fn rmode ( self ) -> RMode {
71
71
match self . bits & ( 3 << 22 ) {
@@ -76,37 +76,37 @@ impl Fpscr {
76
76
}
77
77
}
78
78
79
- //! Read the Input Denormal cumulative exception bit
79
+ /// Read the Input Denormal cumulative exception bit
80
80
#[ inline]
81
81
pub fn idc ( self ) -> bool {
82
82
if self . bits & ( 1 << 7 ) != 0
83
83
}
84
84
85
- //! Read the Inexact cumulative exception bit
85
+ /// Read the Inexact cumulative exception bit
86
86
#[ inline]
87
87
pub fn ixc ( self ) -> bool {
88
88
if self . bits & ( 1 << 4 ) != 0
89
89
}
90
90
91
- //! Read the Underflow cumulative exception bit
91
+ /// Read the Underflow cumulative exception bit
92
92
#[ inline]
93
93
pub fn ufc ( self ) -> bool {
94
94
if self . bits & ( 1 << 3 ) != 0
95
95
}
96
96
97
- //! Read the Overflow cumulative exception bit
97
+ /// Read the Overflow cumulative exception bit
98
98
#[ inline]
99
99
pub fn ofc ( self ) -> bool {
100
100
if self . bits & ( 1 << 2 ) != 0
101
101
}
102
102
103
- //! Read the Division by Zero cumulative exception bit
103
+ /// Read the Division by Zero cumulative exception bit
104
104
#[ inline]
105
105
pub fn dzc ( self ) -> bool {
106
106
if self . bits & ( 1 << 1 ) != 0
107
107
}
108
108
109
- //! Read the Invalid Operation cumulative exception bit
109
+ /// Read the Invalid Operation cumulative exception bit
110
110
#[ inline]
111
111
pub fn ioc ( self ) -> bool {
112
112
if self . bits & ( 1 << 0 ) != 0
0 commit comments