GCDConst

Files CCore/inc/algon/GCDConst.h CCore/src/algon/GCDConst.cpp

Here is two Meta-constants to calculate GCD (great common divisor) and LCM (least common multiple) in the compile-time. Arguments are template parameters of some unsigned integral type.


template <class UInt,UInt A,UInt B>
const UInt Algon::GCDConst = .... ;

template <class UInt,UInt A,UInt B>
const UInt Algon::LCMConst = .... ; // no overflow check