PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/onbloc/int256/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
onbloc / int256
Files
12 (gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/onbloc/int256/v0
gno
0.9

Files (12)

  • gnomod.tomltoml
  • arithmetic.gnogno
  • bitwise.gnogno
  • cmp.gnogno
  • conversion.gnogno
  • doc.gnogno
  • int256.gnogno
  • arithmetic_test.gnogno
  • bitwise_test.gnogno
  • cmp_test.gnogno
  • conversion_test.gnogno
  • int256_test.gnogno
  • bitwise.gnogno
    1package int25623// Not sets z to the bitwise NOT of x and returns z.4//5// The bitwise NOT operation flips each bit of the operand.6func (z *Int) Not(x *Int) *Int {7	z.value.Not(&x.value)8	return z9}1011// And sets z to the bitwise AND of x and y and returns z.12//13// The bitwise AND operation results in a value that has a bit set14// only if both corresponding bits of the operands are set.15func (z *Int) And(x, y *Int) *Int {16	z.value.And(&x.value, &y.value)17	return z18}1920// Or sets z to the bitwise OR of x and y and returns z.21//22// The bitwise OR operation results in a value that has a bit set23// if at least one of the corresponding bits of the operands is set.24func (z *Int) Or(x, y *Int) *Int {25	z.value.Or(&x.value, &y.value)26	return z27}2829// Xor sets z to the bitwise XOR of x and y and returns z.30//31// The bitwise XOR operation results in a value that has a bit set32// only if the corresponding bits of the operands are different.33func (z *Int) Xor(x, y *Int) *Int {34	z.value.Xor(&x.value, &y.value)35	return z36}3738// Rsh sets z to the result of right-shifting x by n bits and returns z.39//40// Right shift operation moves all bits in the operand to the right by the specified number of positions.41// Bits shifted out on the right are discarded, and zeros are shifted in on the left.42func (z *Int) Rsh(x *Int, n uint) *Int {43	z.value.Rsh(&x.value, n)44	return z45}4647// Lsh sets z to the result of left-shifting x by n bits and returns z.48//49// Left shift operation moves all bits in the operand to the left by the specified number of positions.50// Bits shifted out on the left are discarded, and zeros are shifted in on the right.51func (z *Int) Lsh(x *Int, n uint) *Int {52	z.value.Lsh(&x.value, n)53	return z54}55

    Functions

    not supported for pure packages by the node (vm/qfuncs)

    Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.