Initial size handling
This commit is contained in:
parent
9f9dcd5882
commit
0b73f8037b
28 changed files with 543 additions and 135 deletions
|
|
@ -410,14 +410,14 @@ alni instSize(const Instruction& inst) {
|
|||
}
|
||||
|
||||
void writeConst(ByteCode& out, alni& idx, uint2 data) {
|
||||
for (auto byte : Range(sizeof(uint2))) {
|
||||
for (auto byte : IterRange(sizeof(uint2))) {
|
||||
out.mInstructions[idx] = OpCode((int1) (data >> byte * 8));
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
||||
void writeParam(ByteCode& out, alni& idx, const int1* data, alni size) {
|
||||
for (auto byte : Range(size)) {
|
||||
for (auto byte : IterRange(size)) {
|
||||
out.mInstructions[idx] = OpCode(data[byte]);
|
||||
idx++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue