MCPcopy
hub / github.com/ethereum/EIPs / Neg

Function Neg

assets/eip-7543/uint256_wrapped.go:67–71  ·  view source on GitHub ↗
(a, out *int256, gas *uint64)

Source from the content-addressed store, hash-verified

65}
66
67func Neg(a, out *int256, gas *uint64) *int256 {
68 out.Neg(a) // also has new, maybe more gas?
69 *gas += GasFastestStep
70 return out
71}
72
73func IsZero(a *int256, gas *uint64) bool {
74 return a.IsZero()

Callers 5

NegMethod · 0.85
InvMethod · 0.85
signedDivFunction · 0.85
roundMethod · 0.85

Calls 1

NegMethod · 0.80

Tested by

no test coverage detected