24 #ifndef PXR_BASE_TF_BIT_UTILS_H
25 #define PXR_BASE_TF_BIT_UTILS_H
33 #include <type_traits>
44 #define TF_BITS_FOR_VALUES(n) \
45 Tf_NumBits<n-1>::type::value
47 template <
size_t N,
size_t SUM=0,
size_t BIT=
sizeof(
N)*8/2>
55 typedef typename std::conditional<N >= (1ULL<<BIT),
61 template <
size_t N,
size_t SUM>
64 typedef std::integral_constant<size_t, SUM+1>
type;
77 #define TF_BITS_FOR_ENUM_VALUES(n) \
78 (TF_BITS_FOR_VALUES(n) + 1)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
std::integral_constant< size_t, SUM+1 > type
#define PXR_NAMESPACE_CLOSE_SCOPE
GA_API const UT_StringHolder N
Tf_NumBits< N, SUM, BIT/2 >::type _func