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

Method eq

projects/JavaScript/proto/int64.js:1371–1380  ·  view source on GitHub ↗

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

(other)

Source from the content-addressed store, hash-verified

1369 * @returns {boolean} Equal result
1370 */
1371 eq (other) {
1372 if (Int64.isInt64(other)) {
1373 if (((this.high >>> 31) === 1) && ((other.high >>> 31) === 1)) {
1374 return false
1375 }
1376 } else if (!UInt64.isUInt64(other)) {
1377 other = UInt64.fromValue(other)
1378 }
1379 return (this.high === other.high) && (this.low === other.low)
1380 }
1381
1382 /**
1383 * Is this value not equal to other one?

Callers 5

toStringMethod · 0.95
NumBitsMethod · 0.95
neMethod · 0.95
cmpMethod · 0.95
mulMethod · 0.95

Calls 3

isInt64Method · 0.80
isUInt64Method · 0.80
fromValueMethod · 0.45

Tested by

no test coverage detected