Current progress

This commit is contained in:
2023-01-13 19:16:04 +01:00
parent e3499dcd1e
commit c1f86c11c3
2 changed files with 50 additions and 6 deletions

View File

@@ -49,6 +49,10 @@ namespace JabyEngine {
constexpr BitRangeValue<T> with(T value) const {
return {value, this->begin, this->length};
}
constexpr BitRangeValue<T> max() const {
return BitRange<T>::with((1 << this->length) - 1);
}
};
template<typename T>