summaryrefslogtreecommitdiffstats
path: root/src/bool
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-01-31 11:07:28 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-01-31 11:07:28 +0700
commite9286513fd615fac7f67bc1e48e5fe26b9684086 (patch)
tree70e5c15da2a0b13d51bcab8f62a40bbab21ba518 /src/bool
parent686f8fdaa64243155e09ec4deed3ebf8f099edec (diff)
downloadabc-e9286513fd615fac7f67bc1e48e5fe26b9684086.tar.gz
abc-e9286513fd615fac7f67bc1e48e5fe26b9684086.tar.bz2
abc-e9286513fd615fac7f67bc1e48e5fe26b9684086.zip
Fixing compilation problems on Linux-32 related to constants of type unsigned long long.
Diffstat (limited to 'src/bool')
-rw-r--r--src/bool/lucky/luckyFast16.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bool/lucky/luckyFast16.c b/src/bool/lucky/luckyFast16.c
index f8b0fa18..77255d22 100644
--- a/src/bool/lucky/luckyFast16.c
+++ b/src/bool/lucky/luckyFast16.c
@@ -85,13 +85,13 @@ inline int firstShiftWithOneBit(word x, int blockSize)
{
int n = 0;
if(blockSize == 16){ return 0;}
- if (x >= 0x0000000100000000) {n = n + 32; x = x >> 32;}
+ if (x >= ABC_CONST(0x0000000100000000)) {n = n + 32; x = x >> 32;}
if(blockSize == 8){ return (64-n)/32;}
- if (x >= 0x0000000000010000) {n = n + 16; x = x >> 16;}
+ if (x >= ABC_CONST(0x0000000000010000)) {n = n + 16; x = x >> 16;}
if(blockSize == 4){ return (64-n)/16;}
- if (x >= 0x0000000000000100) {n = n + 8; x = x >> 8;}
+ if (x >= ABC_CONST(0x0000000000000100)) {n = n + 8; x = x >> 8;}
if(blockSize == 2){ return (64-n)/8;}
- if (x >= 0x0000000000000010) {n = n + 4; x = x >> 4;}
+ if (x >= ABC_CONST(0x0000000000000010)) {n = n + 4; x = x >> 4;}
return (64-n)/4;
}