Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Bitwise-operations/Racket/bitwise-operations.rkt
Normal file
9
Task/Bitwise-operations/Racket/bitwise-operations.rkt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#lang racket
|
||||
(define a 255)
|
||||
(define b 5)
|
||||
(list (bitwise-and a b)
|
||||
(bitwise-ior a b)
|
||||
(bitwise-xor a b)
|
||||
(bitwise-not a)
|
||||
(arithmetic-shift a b) ; left shift
|
||||
(arithmetic-shift a (- b))) ; right shift
|
||||
Loading…
Add table
Add a link
Reference in a new issue