Speed of bit operations
I was wondering how fast bitwise operations in VB.Net really are? Are they closer to Assembler Code and thereby faster than normal operations (say a normal addition for example) or do they also have to be translated to the framework and then to Assembler Code?
As an example, here is some code to set a bit:
Public Sub SetBitB(Value As Byte, ByVal Position As Byte)
Select Case Position
Case 0 To 7
Value = Value Or 2 ^ Position
Case Else
Err.Raise 6
End Select
End Sub
The question also refers to the bitwise operators AND, OR, etc...
Best regards,
capJK

