Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.02 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.02 KB

zig-bitjuggle

CI

This package contains various "bit juggling" helpers and functionality:

  • isBitSet - Check if a bit is set
  • getBit - Get the value of a bit
  • getBits - Get a range of bits
  • setBit - Set a specific bit
  • setBits - Set a range of bits
  • Bitfield - Used along with extern union to represent arbitrary bit fields
  • Bit - Used along with extern union to represent bit fields
  • Boolean - Used along with extern union to represent boolean bit fields

The Bitfield, Bit & Boolean types are taken pretty much verbatim from Florence (see LICENSE-FLORENCE for original license)

How to get

Submodule

git submodule add https://github.com/leecannon/zig-bitjuggle zig-bitjuggle

Clone

git clone https://github.com/leecannon/zig-bitjuggle