diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-10-30 18:07:41 -0400 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-10-30 18:07:41 -0400 |
commit | 9439786d95becb9f579b6d542a6dfa4286a1401f (patch) | |
tree | 1242d6a84d9a0536f4670e70704bb63af656f850 /src/misc/vec | |
parent | 89864d111eb9432652bb5b72f08888a4e2dd26fd (diff) | |
download | abc-9439786d95becb9f579b6d542a6dfa4286a1401f.tar.gz abc-9439786d95becb9f579b6d542a6dfa4286a1401f.tar.bz2 abc-9439786d95becb9f579b6d542a6dfa4286a1401f.zip |
Changes to Liberty parser.
Diffstat (limited to 'src/misc/vec')
-rw-r--r-- | src/misc/vec/vecFlt.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/misc/vec/vecFlt.h b/src/misc/vec/vecFlt.h index 74c620e4..d5184268 100644 --- a/src/misc/vec/vecFlt.h +++ b/src/misc/vec/vecFlt.h @@ -664,6 +664,28 @@ static inline float Vec_FltFindMin( Vec_Flt_t * p ) /**Function************************************************************* + Synopsis [Checks if two vectors are equal.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline int Vec_FltEqual( Vec_Flt_t * p1, Vec_Flt_t * p2 ) +{ + int i; + if ( p1->nSize != p2->nSize ) + return 0; + for ( i = 0; i < p1->nSize; i++ ) + if ( p1->pArray[i] != p2->pArray[i] ) + return 0; + return 1; +} + +/**Function************************************************************* + Synopsis [] Description [] |