mirror of https://github.com/PrimeDecomp/prime.git
parent
8d0b032e01
commit
67fff47df5
|
@ -0,0 +1,9 @@
|
|||
#ifndef _STREAMSUPPORT
|
||||
#define _STREAMSUPPORT
|
||||
#include <types.h>
|
||||
|
||||
static inline uint min_containing_bytes(uint bits) {
|
||||
return (bits / 8) + ((bits % 8) != 0);
|
||||
}
|
||||
|
||||
#endif // _STREAMSUPPORT
|
Loading…
Reference in New Issue