summaryrefslogtreecommitdiffstats
path: root/src/map/scl/sclLib.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-12-13 12:37:04 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2014-12-13 12:37:04 -0800
commitaadfea8b4d51cace643b3033b725e0f49ee54fb0 (patch)
tree43a2ee1e370f9f18369ea54e444a068b4d567fdb /src/map/scl/sclLib.h
parentb379b3ee20266a4dcfc11f9113326f764846d79e (diff)
downloadabc-aadfea8b4d51cace643b3033b725e0f49ee54fb0.tar.gz
abc-aadfea8b4d51cace643b3033b725e0f49ee54fb0.tar.bz2
abc-aadfea8b4d51cace643b3033b725e0f49ee54fb0.zip
Integrating barrier buffers.
Diffstat (limited to 'src/map/scl/sclLib.h')
-rw-r--r--src/map/scl/sclLib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/scl/sclLib.h b/src/map/scl/sclLib.h
index 09242d01..44cff1ce 100644
--- a/src/map/scl/sclLib.h
+++ b/src/map/scl/sclLib.h
@@ -232,6 +232,7 @@ static inline float SC_PairMin( SC_Pair * d ) { return Abc
static inline float SC_PairAve( SC_Pair * d ) { return 0.5 * d->rise + 0.5 * d->fall; }
static inline void SC_PairDup( SC_Pair * d, SC_Pair * s ) { *d = *s; }
static inline void SC_PairMove( SC_Pair * d, SC_Pair * s ) { *d = *s; s->rise = s->fall = 0; }
+static inline void SC_PairAdd( SC_Pair * d, SC_Pair * s ) { d->rise += s->rise; d->fall += s->fall;}
static inline int SC_PairEqual( SC_Pair * d, SC_Pair * s ) { return d->rise == s->rise && d->fall == s->fall; }
static inline int SC_PairEqualE( SC_Pair * d, SC_Pair * s, float E ) { return d->rise - s->rise < E && s->rise - d->rise < E && d->fall - s->fall < E && s->fall - d->fall < E; }