prime/include/Kyoto/Streams/StreamSupport.hpp

10 lines
188 B
C++
Raw Normal View History

2022-10-12 03:33:22 +00:00
#ifndef _STREAMSUPPORT
#define _STREAMSUPPORT
#include <types.h>
static inline uint min_containing_bytes(uint bits) {
return (bits / 8) + ((bits % 8) != 0);
}
#endif // _STREAMSUPPORT