aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dániel Buga <daniel@revolutionrobotics.org> 2020-06-06 18:58:28 +0200
committerGravatar Dániel Buga <daniel@revolutionrobotics.org> 2020-06-06 18:58:28 +0200
commit7c9afcca584c37d6b8ed4af2c81cefb766a6201e (patch)
tree36dde03b6c39de11cbc1f50b3e1b0924c610c153
parent37e6543330c90bc0f4b417351be91b344a165a2e (diff)
downloadcortex-m-7c9afcca584c37d6b8ed4af2c81cefb766a6201e.tar.gz
cortex-m-7c9afcca584c37d6b8ed4af2c81cefb766a6201e.tar.zst
cortex-m-7c9afcca584c37d6b8ed4af2c81cefb766a6201e.zip
Make RMode methods actually accessible
-rw-r--r--src/register/fpscr.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/register/fpscr.rs b/src/register/fpscr.rs
index 8de237a..7d8ea1a 100644
--- a/src/register/fpscr.rs
+++ b/src/register/fpscr.rs
@@ -268,25 +268,25 @@ pub enum RMode {
impl RMode {
/// Is Nearest the current rounding mode?
#[inline]
- fn is_nearest(self) -> bool {
+ pub fn is_nearest(self) -> bool {
self == RMode::Nearest
}
/// Is Plus Infinity the current rounding mode?
#[inline]
- fn is_plus_infinity(self) -> bool {
+ pub fn is_plus_infinity(self) -> bool {
self == RMode::PlusInfinity
}
/// Is Minus Infinity the current rounding mode?
#[inline]
- fn is_minus_infinity(self) -> bool {
+ pub fn is_minus_infinity(self) -> bool {
self == RMode::MinusInfinity
}
/// Is Zero the current rounding mode?
#[inline]
- fn is_zero(self) -> bool {
+ pub fn is_zero(self) -> bool {
self == RMode::Zero
}
}