realroot_doc 0.1.1
/Users/mourrain/Devel/mmx/realroot/include/realroot/texp_computations.hpp
Go to the documentation of this file.
00001 #ifndef realroot_TYPE_STATIC_COMPUTATIONS_H
00002 #define realroot_TYPE_STATIC_COMPUTATIONS_H
00003 namespace mmx {
00004 
00005 namespace texp {
00006   template<int a, int b> struct max_value { static const int V = (a>b)?a:b; };
00007   template<int a> struct abs_value { static const int V = (a<0)?-a:a; };
00008   //  template<int a, unsigned n> struct pow { static const int V = pow<a,n-1>::V * a; };
00009   //  template<int a> struct pow<a,0> { static const int V = 1; };
00010 };
00011 }// end namespace mmx
00012 
00013 #endif