#include <stdint.h>
#include <type_traits>
#ifdef _MSC_VER
#include <intrin.h>
#endif
#ifndef V8_BIGINT_UTIL_H_
#define V8_BIGINT_UTIL_H_
#define DIV_CEIL(x, y) …
namespace v8 {
namespace bigint {
inline constexpr int RoundUp(int x, int y) { … }
template <typename T, typename = typename std::enable_if<
std::is_unsigned<T>::value && sizeof(T) == 8>::type>
constexpr int CountLeadingZeros(T value) { … }
constexpr int CountLeadingZeros(uint32_t value) { … }
inline constexpr int CountTrailingZeros(uint32_t value) { … }
inline constexpr int BitLength(int n) { … }
inline constexpr bool IsPowerOfTwo(int value) { … }
}
}
#endif