Skip to content

Commit

Permalink
Remove unnecessary brackets and fix the formula for the bitwise left …
Browse files Browse the repository at this point in the history
…shift operator in the basic-operators.md file.
  • Loading branch information
miguelis committed Aug 22, 2024
1 parent 781c779 commit 9a4215b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocs/docs/circom-language/basic-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ All bitwise operators are performed modulo p.
For all ```k``` with ```0=< k <= p/2``` (integer division) we have that

* ```x >> k = x/(2**k)```
* ```x << k = (x*(2{**}k)~ & ~mask) % p ```
* ```x << k = (x*(2**k)~ & ~mask) % p ```

where b is the number of significant bits of p and mask is ```2{**}b - 1```.
where b is the number of significant bits of p and mask is ```2**b - 1```.

For all ```k``` with ```p/2 +1<= k < p``` we have that

Expand Down

0 comments on commit 9a4215b

Please sign in to comment.