Differences From Artifact [bc3e893dc8]:
- Executable file mttroot/mtt/cc/include/useful-functions.hh — part of check-in [89f987075f] at 2001-02-05 04:23:09 on branch origin/master — Simplified. (user: geraint@users.sourceforge.net, size: 946) [annotate] [blame] [check-ins using] [more...]
To Artifact [c0b27c8721]:
- Executable file mttroot/mtt/cc/include/useful-functions.hh — part of check-in [449e55e2e4] at 2001-03-01 05:05:53 on branch origin/merging-ode2odes-exe — Minor revisions. (user: geraint@users.sourceforge.net, size: 1048) [annotate] [blame] [check-ins using] [more...]
1 2 3 4 5 6 7 | template <class T> inline T max (const T &x1, const T &x2) { return (x1 >= x2) ? x1 : (x2 < x1) ? x2 : 0; } | > > | 1 2 3 4 5 6 7 8 9 | #ifndef HAVE_USEFUL_FUNCTIONS_HH #define HAVE_USEFUL_FUNCTIONS_HH template <class T> inline T max (const T &x1, const T &x2) { return (x1 >= x2) ? x1 : (x2 < x1) ? x2 : 0; } |
︙ | ︙ | |||
58 59 60 61 62 63 64 | sign (T x) { return (0 < x) ? +1 : (0 > x) ? -1 : 0; } | > > | 60 61 62 63 64 65 66 67 68 | sign (T x) { return (0 < x) ? +1 : (0 > x) ? -1 : 0; } #endif // HAVE_USEFUL_FUNCTIONS_HH |