[Opentnl-cvs] tnl/tnl tnlTypes.h,1.1,1.2
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <mar...@us...> - 2004-04-30 20:27:50
|
Update of /cvsroot/opentnl/tnl/tnl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31349/tnl Modified Files: tnlTypes.h Log Message: Added Soccer game type Index: tnlTypes.h =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/tnlTypes.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tnlTypes.h 20 Apr 2004 04:27:19 -0000 1.1 --- tnlTypes.h 30 Apr 2004 20:27:40 -0000 1.2 *************** *** 296,394 **** /// @{ ! /// Returns the lesser of the two parameters: a & b. ! inline U32 getMin(U32 a, U32 b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the lesser of the two parameters: a & b. ! inline U16 getMin(U16 a, U16 b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the lesser of the two parameters: a & b. ! inline U8 getMin(U8 a, U8 b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the lesser of the two parameters: a & b. ! inline S32 getMin(S32 a, S32 b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the lesser of the two parameters: a & b. ! inline S16 getMin(S16 a, S16 b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the lesser of the two parameters: a & b. ! inline S8 getMin(S8 a, S8 b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the lesser of the two parameters: a & b. ! inline float getMin(float a, float b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the lesser of the two parameters: a & b. ! inline double getMin(double a, double b) ! { ! return a>b ? b : a; ! } ! ! /// Returns the greater of the two parameters: a & b. ! inline U32 getMax(U32 a, U32 b) ! { ! return a>b ? a : b; ! } ! ! /// Returns the greater of the two parameters: a & b. ! inline U16 getMax(U16 a, U16 b) ! { ! return a>b ? a : b; ! } ! ! /// Returns the greater of the two parameters: a & b. ! inline U8 getMax(U8 a, U8 b) ! { ! return a>b ? a : b; ! } ! ! /// Returns the greater of the two parameters: a & b. ! inline S32 getMax(S32 a, S32 b) ! { ! return a>b ? a : b; ! } ! ! /// Returns the greater of the two parameters: a & b. ! inline S16 getMax(S16 a, S16 b) ! { ! return a>b ? a : b; ! } ! ! /// Returns the greater of the two parameters: a & b. ! inline S8 getMax(S8 a, S8 b) ! { ! return a>b ? a : b; ! } ! ! /// Returns the greater of the two parameters: a & b. ! inline float getMax(float a, float b) ! { ! return a>b ? a : b; ! } ! /// Returns the greater of the two parameters: a & b. ! inline double getMax(double a, double b) ! { ! return a>b ? a : b; ! } /// @} --- 296,311 ---- /// @{ ! #define DeclareTemplatizedMinMax(type) \ ! inline type getMin(type a, type b) { return a > b ? b : a; } \ ! inline type getMax(type a, type b) { return a > b ? a : b; } ! DeclareTemplatizedMinMax(U32) ! DeclareTemplatizedMinMax(S32) ! DeclareTemplatizedMinMax(U16) ! DeclareTemplatizedMinMax(S16) ! DeclareTemplatizedMinMax(U8) ! DeclareTemplatizedMinMax(S8) ! DeclareTemplatizedMinMax(F32) ! DeclareTemplatizedMinMax(F64) /// @} |