49 #define MAXMIN(retType, type1, type2) \
52 inline retType min(const type1 s1, const type2 s2) \
54 return (s1 < s2) ? s1 : s2; \
58 inline retType max(const type1 s1, const type2 s2) \
60 return (s2 < s1) ? s1 : s2; \
67 MAXMIN(int32_t, int32_t, int32_t)
68 MAXMIN(int64_t, int64_t, int32_t)
69 MAXMIN(int64_t, int32_t, int64_t)
70 MAXMIN(int64_t, int64_t, int64_t)
84 inline
int readInt(const std::
string& str)
91 bool readInt(
const char* buf,
int& val);
95 inline bool readInt(
const std::string& str,
int& val)
97 return readInt(str.c_str(), val);