From 67fff47df59033b29805c9be23766dbf61338ad3 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 11 Oct 2022 20:33:22 -0700 Subject: [PATCH] Missed a header Former-commit-id: 08e0d97ba372e3c17a2ed8a87036aac3c08d3772 --- include/Kyoto/Streams/StreamSupport.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/Kyoto/Streams/StreamSupport.hpp diff --git a/include/Kyoto/Streams/StreamSupport.hpp b/include/Kyoto/Streams/StreamSupport.hpp new file mode 100644 index 00000000..ee85e032 --- /dev/null +++ b/include/Kyoto/Streams/StreamSupport.hpp @@ -0,0 +1,9 @@ +#ifndef _STREAMSUPPORT +#define _STREAMSUPPORT +#include + +static inline uint min_containing_bytes(uint bits) { + return (bits / 8) + ((bits % 8) != 0); +} + +#endif // _STREAMSUPPORT