Skip to content

A crate for doing macro-based bit manipulation at zero runtime cost.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE-2.0
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Frostie314159/macro-bits

Repository files navigation

macro-bits

A collection of declarative macros, which makes working with bitfields and similar things trivial.

philosophy

Every macro which makes your live simpler should have zero performance penalty in a sense, that even though they might look complex and intimidating. They actually just evaluate, to exactly the same code you'd write by hand and LLVM can optimize them to dust.

motivation

Frame formats, like the one used by IEEE802.11, use a metric crap ton(definetly an SI unit) of bitfields and, since I appear to be addicted to writing binary parsers, have developed it to takeover some repetitive tasks.

About

A crate for doing macro-based bit manipulation at zero runtime cost.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE-2.0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages