mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Remove the unused &^ AmpHat operator
This commit is contained in:
1 parent
95815036ba
commit
7f0923a9cf
7 files changed
+33
-51
No files matched your search
@@ -1118,9 +1118,6 @@ func (q *checker) bcheckExprBinaryOp1(op t.ID, lhs *a.Expr, lMin *big.Int, lMax
|
||||
// conservative, but works fine in practice.
|
||||
return zero, bitMask(z.BitLen()), nil
|
||||
|
||||
case t.IDXBinaryAmpHat:
|
||||
// TODO.
|
||||
|
||||
case t.IDXBinaryPercent:
|
||||
if lMin.Sign() < 0 {
|
||||
return nil, nil, fmt.Errorf("check: modulus op argument %q is possibly negative", lhs.Str(q.tm))
|
||||
|
||||
@@ -880,8 +880,6 @@ func evalConstValueBinaryOp(tm *t.Map, n *a.Expr, l *big.Int, r *big.Int) (*big.
|
||||
return big.NewInt(0).Rsh(l, uint(r.Uint64())), nil
|
||||
case t.IDXBinaryAmp:
|
||||
return big.NewInt(0).And(l, r), nil
|
||||
case t.IDXBinaryAmpHat:
|
||||
return big.NewInt(0).AndNot(l, r), nil
|
||||
case t.IDXBinaryPipe:
|
||||
return big.NewInt(0).Or(l, r), nil
|
||||
case t.IDXBinaryHat:
|
||||
|
||||
Reference in new issue
Block a user