diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-29 20:32:06 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-29 20:32:06 -0700 |
commit | 1b83b4b2736a2402647a7036a76362860bc1a0ee (patch) | |
tree | cf5e1e8dacce1b65ecfad54c6a23b6481ad260c5 /src/misc | |
parent | 8654192586079916c614dc3a4c62a1cdfd459fee (diff) | |
download | abc-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.h | 6 |
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 |