prime/include/Kyoto/Streams/StreamSupport.hpp
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