Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mmk-1 committed Nov 2, 2023
1 parent 85052a0 commit 16bf020
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/hintrunner/hint.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,15 +508,12 @@ func (hint Uint256SquareRoot) Execute(vm *VM.VirtualMachine) error {

rhs := uint256.NewInt(1)
rhs.Lsh(rhs, 128)
// rhs.Mul(mask128, mask128)
result := rhs.Gt(&lhs)
result = !result

sqrtMul2MinusRemainderGeU128 := f.Element{}
if result {
sqrtMul2MinusRemainderGeU128.SetOne()
} else {
sqrtMul2MinusRemainderGeU128.SetZero()
}

sqrtMul2MinusRemainderGeU128Addr, err := hint.sqrtMul2MinusRemainderGeU128.Get(vm)
Expand Down

0 comments on commit 16bf020

Please sign in to comment.