summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecFlt.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-03-22 16:24:44 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-03-22 16:24:44 -0700
commitace340997bfbbbae838c5f06956d06511739f37d (patch)
tree91fbf3c0a3dca0f938d294a1e4048403ddc1f194 /src/misc/vec/vecFlt.h
parentc86a13f0b56b061fd0841efd080758fc3b77c53e (diff)
downloadabc-ace340997bfbbbae838c5f06956d06511739f37d.tar.gz
abc-ace340997bfbbbae838c5f06956d06511739f37d.tar.bz2
abc-ace340997bfbbbae838c5f06956d06511739f37d.zip
Experiments with mapping.
Diffstat (limited to 'src/misc/vec/vecFlt.h')
-rw-r--r--src/misc/vec/vecFlt.h17
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];