Skip to content

Commit af67221

Browse files
committed
inline
1 parent 3f8fb8a commit af67221

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/generate/generic.rs

+3
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ pub mod raw {
177177
}
178178

179179
impl<REG: RegisterSpec> FromBits<REG::Ux> for R<REG> {
180+
#[inline(always)]
180181
unsafe fn from_bits(bits: REG::Ux) -> Self {
181182
Self {
182183
bits,
@@ -192,6 +193,7 @@ pub mod raw {
192193
}
193194

194195
impl<REG: RegisterSpec> FromBits<REG::Ux> for W<REG> {
196+
#[inline(always)]
195197
unsafe fn from_bits(bits: REG::Ux) -> Self {
196198
Self {
197199
bits,
@@ -201,6 +203,7 @@ pub mod raw {
201203
}
202204

203205
impl<REG: RegisterSpec> ToBits<REG::Ux> for W<REG> {
206+
#[inline(always)]
204207
fn to_bits(&self) -> REG::Ux {
205208
self.bits
206209
}

0 commit comments

Comments
 (0)