prime/include/Kyoto/Streams/StreamSupport.hpp
Phillip Stephens 67fff47df5 Missed a header
Former-commit-id: 08e0d97ba372e3c17a2ed8a87036aac3c08d3772
2022-10-11 20:33:22 -07:00

10 lines
188 B
C++

#ifndef _STREAMSUPPORT
#define _STREAMSUPPORT
#include <types.h>
static inline uint min_containing_bytes(uint bits) {
return (bits / 8) + ((bits % 8) != 0);
}
#endif // _STREAMSUPPORT