15 #ifndef LIBSPIRV_UTIL_BITUTILS_H_ 16 #define LIBSPIRV_UTIL_BITUTILS_H_ 24 template <
typename Dest,
typename Src>
27 static_assert(
sizeof(
source) ==
sizeof(dest),
28 "BitwiseCast: Source and destination must have the same size");
38 template <
typename T,
size_t First = 0,
size_t Num = 0>
40 static_assert(First <
sizeof(
T) * 8,
41 "Tried to set a bit that is shifted too far.");
45 template <
typename T,
size_t Last>
81 #endif // LIBSPIRV_UTIL_BITUTILS_H_
Definition: bitutils.h:21
static const T get
Definition: bitutils.h:42
Definition: bitutils.h:39
GLsizei GLsizei GLchar * source
Definition: glext.h:6688
Dest BitwiseCast(Src source)
Definition: bitutils.h:25
unsigned __int64 uint64_t
Definition: stdint.h:136
unsigned int uint32_t
Definition: stdint.h:126
void * memcpy(void *dst, const void *src, size_t len)
Definition: string.c:26