Extend Periphery code

This commit is contained in:
2024-01-02 19:47:23 -06:00
parent 32f7826c1d
commit fb20f8fe30
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)