Int64Static: BitwiseNot

BitwiseNot

Performs a bitwise NOT of two Int64 values.



 Public Function BitwiseNot(
	  ByRef a As Int64 ) As Int64

Parameters

a
[ByRef] Int64. The first value of the NOT operation.

Return Values

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

Examples

The following code performs a NOT operation on a 64-bit integer value.

Public Sub Main()
    Dim x As Int64
    Dim r As Int64
    
    x = CInt64("0xf0000000")
    r = Int64.BitwiseNot(x)
    
    Debug.Print CorString.Format("NOT 0x{0:x} = 0x{1:x8}", x, r)
End Sub

'This code produces the following.
'    NOT 0xf0000000 = 0xffffffff0fffffff

See Also

Project CorLib Overview

Class Int64Static Overview

BitwiseAnd

BitwiseOr

BitwiseXor