summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2020-03-29 20:32:06 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2020-03-29 20:32:06 -0700
commit1b83b4b2736a2402647a7036a76362860bc1a0ee (patch)
treecf5e1e8dacce1b65ecfad54c6a23b6481ad260c5 /src/misc
parent8654192586079916c614dc3a4c62a1cdfd459fee (diff)
downloadabc-1b83b4b2736a2402647a7036a76362860bc1a0ee.tar.gz
abc-1b83b4b2736a2402647a7036a76362860bc1a0ee.tar.bz2
abc-1b83b4b2736a2402647a7036a76362860bc1a0ee.zip
Various changes.
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/util/abc_global.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h
index 7b7029be..d7c5bea7 100644
--- a/src/misc/util/abc_global.h
+++ b/src/misc/util/abc_global.h
@@ -502,6 +502,12 @@ static inline void * Abc_FileReadContents( char * pFileName, int * pnFileSize )
fclose( pFile );
return (void *)pBuffer;
}
+static inline void Abc_ReverseOrder( int * pA, int nA )
+{
+ int i;
+ for ( i = 0; i < nA/2; i++ )
+ ABC_SWAP( int, pA[i], pA[nA-1-i] );
+}
// sorting