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

Method eq

projects/JavaScript/proto/int64.js:457–466  ·  view source on GitHub ↗

* Is this value equal to other one? * @this {!Int64} * @param {!Int64|!UInt64|number|string} other Other value * @returns {boolean} Equal result

(other)

Source from the content-addressed store, hash-verified

455 * @returns {boolean} Equal result
456 */
457 eq (other) {
458 if (UInt64.isUInt64(other)) {
459 if (((this.high >>> 31) === 1) && ((other.high >>> 31) === 1)) {
460 return false
461 }
462 } else if (!Int64.isInt64(other)) {
463 other = Int64.fromValue(other)
464 }
465 return (this.high === other.high) && (this.low === other.low)
466 }
467
468 /**
469 * Is this value not equal to other one?

Callers 8

toStringMethod · 0.95
NumBitsMethod · 0.95
neMethod · 0.95
cmpMethod · 0.95
negMethod · 0.95
mulMethod · 0.95
divMethod · 0.95
mulMethod · 0.45

Calls 3

isUInt64Method · 0.80
isInt64Method · 0.80
fromValueMethod · 0.45

Tested by

no test coverage detected