/[svn]/linuxsampler/trunk/src/common/RTMath.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/RTMath.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 817 by schoenebeck, Tue Aug 16 16:50:00 2005 UTC revision 818 by wylder, Thu Dec 22 19:35:42 2005 UTC
# Line 260  class __RTMath : public RTMathBase { Line 260  class __RTMath : public RTMathBase {
260                  }                  }
261                  #endif // CONFIG_ASM && ARCH_X86                  #endif // CONFIG_ASM && ARCH_X86
262                  default: {                  default: {
263                      return (b < a) ? b : a;                      return std::min(a, b);
264                  }                  }
265              }              }
266          }          }
267    
268          template<class T_a, class T_b> inline static T_a Min(const T_a a, const T_b b) {          template<class T_a, class T_b> inline static T_a Min(const T_a a, const T_b b) {
             #if __GNUC__  
             return b <? a;  
             #else  
269              return (b < a) ? b : a;              return (b < a) ? b : a;
             #endif  
270          }          }
271    
272          inline static float Max(const float a, const float b) {          inline static float Max(const float a, const float b) {
# Line 289  class __RTMath : public RTMathBase { Line 285  class __RTMath : public RTMathBase {
285                  }                  }
286                  #endif // CONFIG_ASM && ARCH_X86                  #endif // CONFIG_ASM && ARCH_X86
287                  default: {                  default: {
288                      return (b > a) ? b : a;                      return std::max(a, b);
289                  }                  }
290              }              }
291          }          }
292    
293          template<class T_a, class T_b> inline static T_a Max(const T_a a, const T_b b) {          template<class T_a, class T_b> inline static T_a Max(const T_a a, const T_b b) {
             #if __GNUC__  
             return b >? a;  
             #else  
294              return (b > a) ? b : a;              return (b > a) ? b : a;
             #endif  
295          }          }
296    
297          inline static float Fmodf(const float &a, const float &b) {          inline static float Fmodf(const float &a, const float &b) {

Legend:
Removed from v.817  
changed lines
  Added in v.818

  ViewVC Help
Powered by ViewVC