Skip to content

Commit

Permalink
Update to new type resolution in asc (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal authored and MaxGraey committed Sep 18, 2019
1 parent 47a7077 commit 40cc5f5
Show file tree
Hide file tree
Showing 4 changed files with 384 additions and 395 deletions.
10 changes: 5 additions & 5 deletions assembly/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ function processU64(digits: Int8Array, value: u64): void {
var length = digits.length - 1;
for (let i = 63; i != -1; i--) {
for (let j = 0; j <= length; j++) {
digits[j] += i8(digits[j] >= 5) * 3;
digits[j] = digits[j] + (i8(digits[j] >= 5) * 3);
}
for (let j = length; j != -1; j--) {
digits[j] <<= 1;
if (j < length) digits[j + 1] |= i8(digits[j] > 15);
digits[j] &= 15;
digits[j] = digits[j] << 1;
if (j < length) digits[j + 1] = (digits[j+1] | i8(digits[j] > 15));
digits[j] = digits[j] & 15;
}
digits[0] += i8((value & (1 << i)) != 0);
digits[0] = digits[0] + i8((value & (1 << i)) != 0);
}
}

Expand Down
Loading

0 comments on commit 40cc5f5

Please sign in to comment.