diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2017-04-27 22:08:17 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2017-04-27 22:08:17 -0700 |
commit | 1faab72a6c4433027e691fb8547a994f56993f67 (patch) | |
tree | 3af98ce0e9efa40b27572c68ed24e63ea4ec4925 /src/misc | |
parent | 0de189f4db57906339dfa778dfd1b541c86a74f2 (diff) | |
download | abc-1faab72a6c4433027e691fb8547a994f56993f67.tar.gz abc-1faab72a6c4433027e691fb8547a994f56993f67.tar.bz2 abc-1faab72a6c4433027e691fb8547a994f56993f67.zip |
Experiments with support minimization.
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/extra/extraUtilCube.c | 4 | ||||
-rw-r--r-- | src/misc/extra/extraUtilEnum.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/extra/extraUtilCube.c b/src/misc/extra/extraUtilCube.c index c053e23a..f518405b 100644 --- a/src/misc/extra/extraUtilCube.c +++ b/src/misc/extra/extraUtilCube.c @@ -159,8 +159,8 @@ Iter 12 -> 3674160 Time = 70.48 sec SeeAlso [] ***********************************************************************/ -static inline int Abc_DataHasBit( word * p, word i ) { return (p[(i)>>6] & (1<<((i) & 63))) > 0; } -static inline void Abc_DataXorBit( word * p, word i ) { p[(i)>>6] ^= (1<<((i) & 63)); } +static inline int Abc_DataHasBit( word * p, word i ) { return (p[(i)>>6] & (((word)1)<<((i) & 63))) > 0; } +static inline void Abc_DataXorBit( word * p, word i ) { p[(i)>>6] ^= (((word)1)<<((i) & 63)); } static inline int Abc_DataGetCube( word w, int i ) { return (w >> (5*i)) & 31; } static inline word Abc_DataXorCube( word w, int i, int c ) { return w ^ (((word)c) << (5*i)); } static inline word Abc_CubeGenerateSign( char * pState ) diff --git a/src/misc/extra/extraUtilEnum.c b/src/misc/extra/extraUtilEnum.c index 31364a16..84b0b089 100644 --- a/src/misc/extra/extraUtilEnum.c +++ b/src/misc/extra/extraUtilEnum.c @@ -298,8 +298,8 @@ void Abc_EnumPrint( Vec_Int_t * vGates, int i, int nVars ) SeeAlso [] ***********************************************************************/ -static inline int Abc_DataHasBit( word * p, word i ) { return (p[(i)>>6] & (1<<((i) & 63))) > 0; } -static inline void Abc_DataXorBit( word * p, word i ) { p[(i)>>6] ^= (1<<((i) & 63)); } +static inline int Abc_DataHasBit( word * p, word i ) { return (p[(i)>>6] & (((word)1)<<((i) & 63))) > 0; } +static inline void Abc_DataXorBit( word * p, word i ) { p[(i)>>6] ^= (((word)1)<<((i) & 63)); } /**Function************************************************************* |