Language: VB4,VB5,VB6,VBS Expertise: beginner
Jun 26, 1999
WEBINAR:
On-Demand
Application Security Testing: An Integral Part of DevOps
BitClear - Clear a bit in a value
' Clear a bit in a value
'
' NOTE: requires Power2()
Function BitClear(ByVal value As Long, ByVal bit As Long) As Long
' simply AND with the negation of the bit mask
' Range checking is performed in Power2()
BitClear = (value And Not Power2(bit))
End Function
Francesco Balena
|