Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add RANGE_CHECK builtins #19

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changed initialization format of RC_BOUND bigint
  • Loading branch information
KeneePatel authored and ClementWalter committed Jun 3, 2024
commit ee94cbc24f99ed92cedb530d515783c7c53e24d1
2 changes: 1 addition & 1 deletion src/builtins.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const RC_BOUND: bigint = BigInt("340282366920938463463374607431768211456"); // equivalent to 2^128
const RC_BOUND: bigint = BigInt(2 ** 128);

function RANGE_CHECK(num: bigint): bigint {
if (num < RC_BOUND) {