diff options
Diffstat (limited to 'src/misc/vec/vecFlt.h')
-rw-r--r-- | src/misc/vec/vecFlt.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/misc/vec/vecFlt.h b/src/misc/vec/vecFlt.h index 57bfe3c1..8f3005a4 100644 --- a/src/misc/vec/vecFlt.h +++ b/src/misc/vec/vecFlt.h @@ -395,6 +395,23 @@ static inline void Vec_FltAddToEntry( Vec_Flt_t * p, int i, float Addition ) SeeAlso [] ***********************************************************************/ +static inline void Vec_FltUpdateEntry( Vec_Flt_t * p, int i, float Value ) +{ + if ( Vec_FltEntry( p, i ) < Value ) + Vec_FltWriteEntry( p, i, Value ); +} + +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ static inline float Vec_FltEntryLast( Vec_Flt_t * p ) { return p->pArray[p->nSize-1]; |