MCPcopy Create free account
hub / github.com/cockroachdb/apd / Sign

Method Sign

bigint.go:909–919  ·  view source on GitHub ↗

Sign calls (big.Int).Sign.

()

Source from the content-addressed store, hash-verified

907
908// Sign calls (big.Int).Sign.
909func (z *BigInt) Sign() int {
910 if z._inner == nil {
911 if z._inline == [inlineWords]big.Word{} {
912 return 0
913 }
914 return 1
915 } else if z._inner == negSentinel {
916 return -1
917 }
918 return z._inner.Sign()
919}
920
921// Sqrt calls (big.Int).Sqrt.
922func (z *BigInt) Sqrt(x *BigInt) *BigInt {

Callers 15

RoundMethod · 0.95
round05UpFunction · 0.95
TestBigIntNoNegativeZeroFunction · 0.95
QuoMethod · 0.95
integerPowerMethod · 0.95
ReduceMethod · 0.95
doneMethod · 0.45
roundAddOneFunction · 0.45
NumDigitsFunction · 0.45
gdaTestFunction · 0.45
TestBigIntSignZFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestBigIntNoNegativeZeroFunction · 0.76
gdaTestFunction · 0.36
TestBigIntSignZFunction · 0.36
TestNewWithBigIntFunction · 0.36