Back to index

supertuxkart  0.5+dfsg1
Functions
btMinMax.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
SIMD_FORCE_INLINE const T & btMin (const T &a, const T &b)
template<class T >
SIMD_FORCE_INLINE const T & btMax (const T &a, const T &b)
template<class T >
SIMD_FORCE_INLINE const T & GEN_clamped (const T &a, const T &lb, const T &ub)
template<class T >
SIMD_FORCE_INLINE void btSetMin (T &a, const T &b)
template<class T >
SIMD_FORCE_INLINE void btSetMax (T &a, const T &b)
template<class T >
SIMD_FORCE_INLINE void GEN_clamp (T &a, const T &lb, const T &ub)

Function Documentation

template<class T >
SIMD_FORCE_INLINE const T& btMax ( const T &  a,
const T &  b 
)

Definition at line 27 of file btMinMax.h.

{
  return  a > b ? a : b;
}

Here is the caller graph for this function:

template<class T >
SIMD_FORCE_INLINE const T& btMin ( const T &  a,
const T &  b 
)

Definition at line 21 of file btMinMax.h.

{
  return a < b ? a : b ;
}

Here is the caller graph for this function:

template<class T >
SIMD_FORCE_INLINE void btSetMax ( T &  a,
const T &  b 
)

Definition at line 48 of file btMinMax.h.

{
    if (a < b) 
       {
              a = b;
       }
}

Here is the caller graph for this function:

template<class T >
SIMD_FORCE_INLINE void btSetMin ( T &  a,
const T &  b 
)

Definition at line 39 of file btMinMax.h.

{
    if (b < a) 
       {
              a = b;
       }
}

Here is the caller graph for this function:

template<class T >
SIMD_FORCE_INLINE void GEN_clamp ( T &  a,
const T &  lb,
const T &  ub 
)

Definition at line 57 of file btMinMax.h.

{
       if (a < lb) 
       {
              a = lb; 
       }
       else if (ub < a) 
       {
              a = ub;
       }
}
template<class T >
SIMD_FORCE_INLINE const T& GEN_clamped ( const T &  a,
const T &  lb,
const T &  ub 
)

Definition at line 33 of file btMinMax.h.

{
       return a < lb ? lb : (ub < a ? ub : a); 
}

Here is the caller graph for this function: