Bitwise operations: Difference between revisions

no edit summary
No edit summary
Line 877:
bitShiftR(35, 1) # 17
# Note that no bit rotation is provided in this package</lang>
 
=={{header|PureBasic}}==
<lang PureBasic>Procedure Bitwise(a, b)
Debug a & b ; And
Debug a | b ;Or
Debug a ! b ; XOr
Debug ~a ;Not
Debug a << b ; shift left
Debug a >> b ;shift right
; Shift right is arithmetic if used on unsigned Variables
; No native function for rotating
EndProcedure</lang>
 
=={{header|Ruby}}==
Anonymous user