CortidQCT  1.2.2.52
Padding.h
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #include <cstdint>
15 #include <type_traits>
16 
17 namespace CortidQCT {
18 namespace Internal {
19 
20 constexpr std::size_t bitPadding(std::size_t size, std::size_t alignment) {
21  return (size % alignment) * 8;
22 }
23 
24 #define CQCT_PADDING(Size, Alignment) \
25  unsigned int : ::CortidQCT::Internal::bitPadding((Size), (Alignment))
26 
27 } // namespace Internal
28 } // namespace CortidQCT
Name namespace for CortidQCT library.
Definition: CortidQCT.h:23