Skip to content

Commit

Permalink
Update docs/zkapps/o1js/bitwise-operations.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Barrie Byron <barrie@o1labs.org>
  • Loading branch information
mitschabaude and barriebyron authored Dec 11, 2023
1 parent 79d47db commit 12dcfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zkapps/o1js/bitwise-operations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ leftShift64(field: Field, bits: number) => Field

The `leftShift64()` gadget is a provable equivalent to the [Left shift (<<)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Left_shift) operator in JavaScript. It moves the bits of a binary number to the left by the specified number of `bits`. Any bits that fall off the left side are discarded. `0`s are padded in from the right. It returns a new `Field` element that is range checked to 64 bits.

The input `Field` should not 64 bits in size. You can use [rangeCheck64](#rangecheck64) to ensure this.
The input `Field` must not exceed 64 bits in size. You can use [rangeCheck64](#rangecheck64) to ensure this.

Example:

Expand Down

0 comments on commit 12dcfba

Please sign in to comment.