@@ -27,6 +27,7 @@ impl Fpscr {
27
27
}
28
28
29
29
/// Sets the Negative condition code flag
30
+ #[ inline]
30
31
pub fn set_n ( & mut self , n : bool ) {
31
32
let mask = 1 << 31 ;
32
33
match n {
@@ -42,6 +43,7 @@ impl Fpscr {
42
43
}
43
44
44
45
/// Sets the Zero condition code flag
46
+ #[ inline]
45
47
pub fn set_z ( & mut self , z : bool ) {
46
48
let mask = 1 << 30 ;
47
49
match z {
@@ -57,6 +59,7 @@ impl Fpscr {
57
59
}
58
60
59
61
/// Sets the Carry condition code flag
62
+ #[ inline]
60
63
pub fn set_c ( & mut self , c : bool ) {
61
64
let mask = 1 << 29 ;
62
65
match c {
@@ -72,6 +75,7 @@ impl Fpscr {
72
75
}
73
76
74
77
/// Sets the Zero condition code flag
78
+ #[ inline]
75
79
pub fn set_v ( & mut self , v : bool ) {
76
80
let mask = 1 << 28 ;
77
81
match v {
@@ -87,6 +91,7 @@ impl Fpscr {
87
91
}
88
92
89
93
/// Sets the Alternative Half Precision bit
94
+ #[ inline]
90
95
pub fn set_ahp ( & mut self , ahp : bool ) {
91
96
let mask = 1 << 26 ;
92
97
match ahp {
@@ -102,6 +107,7 @@ impl Fpscr {
102
107
}
103
108
104
109
/// Sets the Default NaN mode bit
110
+ #[ inline]
105
111
pub fn set_dn ( & mut self , dn : bool ) {
106
112
let mask = 1 << 25 ;
107
113
match dn {
@@ -117,6 +123,7 @@ impl Fpscr {
117
123
}
118
124
119
125
/// Sets the Flush to Zero mode bit
126
+ #[ inline]
120
127
pub fn set_fz ( & mut self , fz : bool ) {
121
128
let mask = 1 << 24 ;
122
129
match fz {
@@ -137,6 +144,7 @@ impl Fpscr {
137
144
}
138
145
139
146
/// Sets the Rounding Mode control field
147
+ #[ inline]
140
148
pub fn set_rmode ( & mut self , rmode : RMode ) {
141
149
let mask = 3 << 22 ;
142
150
match rmode {
@@ -154,6 +162,7 @@ impl Fpscr {
154
162
}
155
163
156
164
/// Sets the Input Denormal cumulative exception bit
165
+ #[ inline]
157
166
pub fn set_idc ( & mut self , idc : bool ) {
158
167
let mask = 1 << 7 ;
159
168
match idc {
@@ -169,6 +178,7 @@ impl Fpscr {
169
178
}
170
179
171
180
/// Sets the Inexact cumulative exception bit
181
+ #[ inline]
172
182
pub fn set_ixc ( & mut self , ixc : bool ) {
173
183
let mask = 1 << 4 ;
174
184
match ixc {
@@ -184,6 +194,7 @@ impl Fpscr {
184
194
}
185
195
186
196
/// Sets the Underflow cumulative exception bit
197
+ #[ inline]
187
198
pub fn set_ufc ( & mut self , ufc : bool ) {
188
199
let mask = 1 << 3 ;
189
200
match ufc {
@@ -199,6 +210,7 @@ impl Fpscr {
199
210
}
200
211
201
212
/// Sets the Overflow cumulative exception bit
213
+ #[ inline]
202
214
pub fn set_ofc ( & mut self , ofc : bool ) {
203
215
let mask = 1 << 2 ;
204
216
match ofc {
@@ -214,6 +226,7 @@ impl Fpscr {
214
226
}
215
227
216
228
/// Sets the Division by Zero cumulative exception bit
229
+ #[ inline]
217
230
pub fn set_dzc ( & mut self , dzc : bool ) {
218
231
let mask = 1 << 1 ;
219
232
match dzc {
@@ -229,6 +242,7 @@ impl Fpscr {
229
242
}
230
243
231
244
/// Sets the Invalid Operation cumulative exception bit
245
+ #[ inline]
232
246
pub fn set_ioc ( & mut self , ioc : bool ) {
233
247
let mask = 1 << 0 ;
234
248
match ioc {
0 commit comments