Extend Periphery code

This commit is contained in:
Jaby
2024-01-02 19:47:23 -06:00
parent f15061fe67
commit fc646f1b1b
4 changed files with 81 additions and 3 deletions

View File

@@ -150,6 +150,10 @@ namespace JabyEngine {
return *reinterpret_cast<S*>(&value);
}
}
static constexpr uint32_t operator<<(uint32_t value, const Bit& bit) {
return value << bit.pos;
}
}
#define __start_end_bit2_start_length(start_bit, end_bit) start_bit, (end_bit - start_bit + 1)