Introduce SimpleTIM type

This commit is contained in:
2022-10-01 21:02:58 +02:00
parent 8917932bc7
commit 706f989f8f
2 changed files with 35 additions and 2 deletions

View File

@@ -134,12 +134,12 @@ public:
}
template<typename S>
constexpr S get_value(const BitRange<S>& range) {
constexpr S get_value(const BitRange<S>& range) const {
return static_cast<S>(bit::value::get_normalized(this->raw, range.begin, range.length));
}
template<typename S>
constexpr S get_value(const BitRange<S>& range) volatile {
constexpr S get_value(const BitRange<S>& range) const volatile {
return static_cast<S>(bit::value::get_normalized(this->raw, range.begin, range.length));
}