ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/global.h
(Generate patch)

Comparing gvpe/src/global.h (file contents):
Revision 1.24 by pcg, Thu Aug 7 17:54:27 2008 UTC vs.
Revision 1.25 by root, Sun Mar 6 21:01:37 2011 UTC

80#define PKTCACHESIZE 16 // the size of the memory pool for packets 80#define PKTCACHESIZE 16 // the size of the memory pool for packets
81 81
82extern char *confbase; // directory in which all config files are 82extern char *confbase; // directory in which all config files are
83extern char *thisnode; // config for current node (TODO: remove) 83extern char *thisnode; // config for current node (TODO: remove)
84 84
85template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; }
86template<typename T, typename U> static inline void min_it (T &a, U b) { a = a < (T)b ? a : (T)b; }
87template<typename T, typename U> static inline T max (T a, U b) { return a > (T)b ? a : (T)b; }
88template<typename T, typename U> static inline void max_it (T &a, U b) { a = a > (T)b ? a : (T)b; }
89
90template<typename T, typename U, typename V> static inline T clamp (T v, U a, V b) { return v < (T)a ? a : v >(T)b ? b : v; }
91
92template<typename T, typename U> static inline void swap (T& a, U& b) { T t=a; a=(T)b; b=(U)t; }
93
85#endif 94#endif
86 95

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines