Current progress

This commit is contained in:
Jaby
2023-01-13 19:16:04 +01:00
committed by Jaby
parent 57d4fa4e67
commit e905a4aa8c
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>