Skip to content

A library to perform bitwise operations on binary strings

Notifications You must be signed in to change notification settings

jas-dzied/bitwise-spwn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

bitwise-spwn

A library to perform bitwise operations on binary strings

Usage

$.print(bitwise::and("110011", "101010"))
$.print(bitwise::or("110011", "101010"))
$.print(bitwise::xor("110011", "101010"))
$.print(bitwise::not("110011"))

$.print(bitwise::lshift("110010"))
$.print(bitwise::rshift("010011"))
$.print(bitwise::lrotate("110010"))
$.print(bitwise::rrotate("010011"))

Output:

100010
111011
011001
001100
100100
001001
100101
101001

All the bitwise operations work with the size of the string provided. E.g. lshift("10") will give 00 while lshift("010") will give 100

About

A library to perform bitwise operations on binary strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published