diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-10-07 08:37:25 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-10-07 08:37:25 -0700 |
commit | b19d09f04c37ceea2f2ed7abfb9881e09ea59c60 (patch) | |
tree | 77aebd948ede32203f3d866495eb359a6ad5fe33 /src/map | |
parent | 72f4dfff1b0b62bd3f3beaa647e6111482a923d0 (diff) | |
download | abc-b19d09f04c37ceea2f2ed7abfb9881e09ea59c60.tar.gz abc-b19d09f04c37ceea2f2ed7abfb9881e09ea59c60.tar.bz2 abc-b19d09f04c37ceea2f2ed7abfb9881e09ea59c60.zip |
Bug fix in 'if -g' (incorrect use of a macro).
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/if/ifCount.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/if/ifCount.h b/src/map/if/ifCount.h index 9bfc36d4..dd5d233b 100644 --- a/src/map/if/ifCount.h +++ b/src/map/if/ifCount.h @@ -141,9 +141,9 @@ static inline int If_LogCounterDelayXor( int * pTimes, int nTimes ) SeeAlso [] ***********************************************************************/ -static inline int If_CutPinDelayGet( word D, int v ) { assert(v >= 0 && v < IF_MAX_FUNC_LUTSIZE); return (int)((D >> (v << 2)) & 0xF); } -static inline void If_CutPinDelaySet( word * pD, int v, int d ) { assert(v >= 0 && v < IF_MAX_FUNC_LUTSIZE); assert(d >= 0 && d < IF_MAX_FUNC_LUTSIZE); *pD |= ((word)d << (v << 2)); } -static inline word If_CutPinDelayInit( int v ) { assert(v >= 0 && v < IF_MAX_FUNC_LUTSIZE); return (word)1 << (v << 2); } +static inline int If_CutPinDelayGet( word D, int v ) { assert(v >= 0 && v < 16); return (int)((D >> (v << 2)) & 0xF); } +static inline void If_CutPinDelaySet( word * pD, int v, int d ) { assert(v >= 0 && v < 16); assert(d >= 0 && d < 16); *pD |= ((word)d << (v << 2)); } +static inline word If_CutPinDelayInit( int v ) { assert(v >= 0 && v < 16); return (word)1 << (v << 2); } static inline word If_CutPinDelayMax( word D1, word D2, int nVars, int AddOn ) { int v, Max; |