ReC98/twobyte.h
nmlgc d1f1b7d405 [Maintenance] Move twobyte_t into its own header file
And hope that there won't be any more generic utility types like it…

Part of P0133, funded by [Anonymous].
2021-01-30 18:31:54 +01:00

10 lines
184 B
C

// Used by various (dumb) pieces of code that require byte-wise access to
// 16-bit values.
typedef union {
struct {
int8_t lo, hi;
} byte;
uint8_t u[2];
int16_t v;
} twobyte_t;