Skip to content

Commit 892abda

Browse files
boondocklabsusbalbin
authored andcommitted
Add inline(always) to status register error flag accessor methods
1 parent 22be238 commit 892abda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rng.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,13 @@ impl Rng<Running> {
113113
}
114114

115115
/// Check if the seed error flag is set
116+
#[inline(always)]
116117
pub fn is_seed_error(&self) -> bool {
117118
unsafe { (*RNG::ptr()).sr().read().seis().bit_is_set() }
118119
}
119120

120121
/// Check if the clock error flag is set
122+
#[inline(always)]
121123
pub fn is_clock_error(&self) -> bool {
122124
unsafe { (*RNG::ptr()).sr().read().ceis().bit_is_set() }
123125
}

0 commit comments

Comments
 (0)