Returns the bit-wise equivalent of two 64-bit patterns.
large = i Eqv8 j( operator)
large = Eqv8(i, j [,m, …])( function)
i, j, m:64-bit integer expression
Eqv8(i, j) sets in the result only the bits which are the same in both i and j. The arguments are converted to Large before the operation is performed (using CLarge).
Bit 1 | Bit 2 | Result |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Debug.Show
Local a As Large, b As Currency, x%
a = Random(10000), b = Random(10000)
Trace Bin$(a, 64)
Trace Bin$(b, 64)
Trace Bin$(Xor8(a, b), 64)
Trace Bin$(Eqv8(a, b), 64)
Trace Bin$(Not (Xor8(a, b)), 64)
Local Large x, y, xx, a%
x = Large 12345678909
y = Large 10015432101
xx = x Eqv8 y
Trace xx
This function is equivalent to Not(Xor8(i, j)).
And8, Or8, Xor8, Imp8, Operator Hierarchy
{Created by Sjouke Hamstra; Last updated: 04/10/2014 by James Gaite}