Current progress

This commit is contained in:
Jaby
2023-01-13 19:16:04 +01:00
parent 4e445b2b91
commit 3dee2a8d74
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>