Template Struct Log2

Template Parameter Order

  1. uint32_t N

Struct Documentation

template<uint32_t N>
struct NTL::Log2

Struct to find log value of N. Needed in the preprocessing step of ubint to determine bitwidth.

Template Parameters

N – bitwidth.

Public Static Attributes

static const uint32_t value = 1 + Log2<N / 2>::value