Skip to content

C library for storing up to 8 boolean values in a byte instead of using 8 bytes

Notifications You must be signed in to change notification settings

ico2k2developer/Boolean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boolean

C library for storing up to 8 boolean values in a byte (thus 1 boolean value per bit) instead of consuming 1 byte for each boolean value. This can be helpful when the aim is to reduce memory usage.

Note: the actual amount of boolean values that can be stored is platform dependent (depends on the size of uint8_t) but most of times will be 8.