NBitsUsed.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_NBitsUsed_h_
#define polybori_groebner_NBitsUsed_h_
// include basic definitions
#include "groebner_defs.h"
BEGIN_NAMESPACE_PBORIGB
template<unsigned long NValue>
class NBitsUsed {
public:
enum { value = NBitsUsed<(NValue >> 1)>::value + 1};
};
template<>
class NBitsUsed<0> {
public:
enum { value = 0};
};
END_NAMESPACE_PBORIGB
#endif /* polybori_groebner_NBitsUsed_h_ */
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
groebner_defs.h
polybori::groebner::NBitsUsed
This class defines NBitsUsed whose value attribute computes the actual number of used bits at compile...
Definition: NBitsUsed.h:31