#ifndef _TOOLS_H_
#define _TOOLS_H_

#define maxreal 9.9e99
#define maxdouble maxreal

template <class T> T min(T a, T b){if(a<b) return a;return b;}
template <class T> T max(T a, T b){if(a>b) return a;return b;}

int GetCPUUsage(void);

#endif
