Bitstruct implementation.

This commit is contained in:
Christoffer Lerno
2021-11-01 23:48:34 +01:00
committed by Christoffer Lerno
parent 29e7af843a
commit 4f09b0c351
27 changed files with 2686 additions and 60 deletions

View File

@@ -262,6 +262,12 @@ static inline int hex_nibble(char c)
return conv[(unsigned char)c];
}
static inline char nibble_hex(int c)
{
static const char *conv = "0123456789ABCDEF";
return conv[c];
}
static inline bool is_whitespace(char c)
{
switch (c)