MCPcopy Create free account
hub / github.com/DNAProject/DNA / Sign

Method Sign

vm/neovm/types/int_value.go:152–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152func (self *IntValue) Sign() int {
153 if self.isbig {
154 return self.bigint.Sign()
155 } else {
156 if self.integer < 0 {
157 return -1
158 } else if self.integer == 0 {
159 return 0
160 } else {
161 return 1
162 }
163 }
164}
165
166func (self IntValue) Max(other IntValue) (IntValue, error) {
167 return self.intOp(other, func(a, b int64) (int64, bool) {

Callers 13

RshMethod · 0.95
SignFunction · 0.80
SignFunction · 0.80
SigDataFunction · 0.80
SigRawTransactionFunction · 0.80
I128FromBigIntFunction · 0.80
BigIntToNeoBytesFunction · 0.80
TestVerifyFunction · 0.80
EmitPushIntegerMethod · 0.80
compareFuncBigIntFunction · 0.80
AsBoolMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestVerifyFunction · 0.64
compareFuncBigIntFunction · 0.64