(vm *VM)
| 10 | var ErrBitLen = errorf("mismatched byte lengths for binary bitwise op") |
| 11 | |
| 12 | func opBitNot(vm *VM) { |
| 13 | s := vm.popBytes() |
| 14 | t := make([]byte, len(s)) |
| 15 | for i := 0; i < len(s); i++ { |
| 16 | t[i] = ^s[i] |
| 17 | } |
| 18 | vm.chargeCreate(Bytes(t)) |
| 19 | vm.push(Bytes(t)) |
| 20 | } |
| 21 | |
| 22 | func opBitAnd(vm *VM) { bitOp(vm, and) } |
| 23 | func opBitOr(vm *VM) { bitOp(vm, or) } |
nothing calls this directly
no test coverage detected