Int64Static: BitwiseXor

BitwiseXor

Performs a bitwise XOR of two Int64 values.



 Public Function BitwiseXor(
	  ByRef a As Int64,
	  ByRef b As Int64 ) As Int64

Parameters

a
[ByRef] Int64. The first value of the XOR operation.
b
[ByRef] Int64. The second value of the XOR operation.

Return Values

Int64 -  A new Int64 value containing the performed bitwise operation.

Examples

The following code performs a bitwise exclusive-or operation between two 64-bit integers.

Public Sub Main()
    Dim x As Int64
    Dim y As Int64
    Dim r As Int64
    
    x = CInt64("0xffffffff")
    y = CInt64("0x000ff000")
    r = Int64.BitwiseXor(x, y)
    
    Debug.Print CorString.Format("0x{0:x8} XOR 0x{1:x8} = 0x{2:x8}", x, y, r)
End Sub

'This code produces the following.
'    0xffffffff XOR 0x000ff000 = 0xfff00fff

See Also

Project CorLib Overview

Class Int64Static Overview

BitwiseAnd

BitwiseOr

BitwiseNot