MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / neg

Method neg

projects/JavaScript/proto/int64.js:548–553  ·  view source on GitHub ↗

* Negates this value * @this {!Int64} * @returns {!Int64} Negated value

()

Source from the content-addressed store, hash-verified

546 * @returns {!Int64} Negated value
547 */
548 neg () {
549 if (this.eq(INT64_MIN)) {
550 return INT64_MIN
551 }
552 return this.not().add(INT64_ONE)
553 }
554
555 /**
556 * Add this value to other one

Callers 11

toStringMethod · 0.95
NumBitsMethod · 0.95
mulMethod · 0.95
divMethod · 0.95
fromNumberMethod · 0.45
fromStringMethod · 0.45
subMethod · 0.45
fromNumberMethod · 0.45
fromStringMethod · 0.45
subMethod · 0.45
mulMethod · 0.45

Calls 3

eqMethod · 0.95
notMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected