Public Types

alg::ConstLog2< exp > Struct Template Reference

A template for constructing integer constants. More...

#include <libalgebra.h>

List of all members.

Public Types

enum  { ans = ConstLog2 < exp /2 >::ans+1 }

Detailed Description

template<unsigned exp>
struct alg::ConstLog2< exp >

A template for constructing integer constants.

For $exp > 0$, produces the largest unsigned integer $ans$ such that $2^(ans+1) > exp$ and $ans$ is smallest integer with this property.


The documentation for this struct was generated from the following file: