X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=src%2Fbase%2Fcl_low.h;h=d146f2788f668db56b2db6c3f2754d45c67e207e;hb=795eaad1187ec695cfbff001c89091c1da453334;hp=ccfe1f082f24d51b9ae743e178416fac8b9ec3ba;hpb=2f48af80594306e67a14421b56ea3d1960acd237;p=cln.git diff --git a/src/base/cl_low.h b/src/base/cl_low.h index ccfe1f0..d146f27 100644 --- a/src/base/cl_low.h +++ b/src/base/cl_low.h @@ -3,8 +3,6 @@ #ifndef _CL_LOW_H #define _CL_LOW_H -#include "cln/types.h" - namespace cln { // Determines the sign of a 16-bit number. @@ -1297,7 +1295,6 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2) /* x32 besteht aus 1 16-Bit-Zähler (0,...,32). */\ ) // Bits von x64 zählen: (Input x64, Output x64) -#if HAVE_DD #define logcount_64() \ ( /* x64 besteht aus 64 1-Bit-Zählern (0,1). */\ x64 = (x64 & 0x5555555555555555ULL) + ((x64 & 0xAAAAAAAAAAAAAAAAULL) >> 1),\ @@ -1313,23 +1310,6 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2) x64 = (x64 & 0x0000FFFFU) + (x64 >> 16) \ /* x64 besteht aus 1 16-Bit-Zähler (0,...,64). */\ ) -#else - #define logcount_64() \ - ( /* x64 besteht aus 64 1-Bit-Zählern (0,1). */\ - x64 = (x64 & 0x5555555555555555UL) + ((x64 & 0xAAAAAAAAAAAAAAAAUL) >> 1),\ - /* x64 besteht aus 32 2-Bit-Zählern (0,1,2). */\ - x64 = (x64 & 0x3333333333333333UL) + ((x64 & 0xCCCCCCCCCCCCCCCCUL) >> 2),\ - /* x64 besteht aus 16 4-Bit-Zählern (0,1,2,3,4). */\ - x64 = (uint32)(x64 + (x64 >> 32)), \ - /* x64 besteht aus 8 4-Bit-Zählern (0,...,8). */\ - x64 = (x64 & 0x0F0F0F0FUL) + ((x64 & 0xF0F0F0F0UL) >> 4), \ - /* x64 besteht aus 4 8-Bit-Zählern (0,...,16). */\ - x64 = (x64 & 0x00FF00FFU) + ((x64 & 0xFF00FF00U) >> 8), \ - /* x64 besteht aus 2 16-Bit-Zählern (0,...,32). */\ - x64 = (x64 & 0x0000FFFFU) + (x64 >> 16) \ - /* x64 besteht aus 1 16-Bit-Zähler (0,...,64). */\ - ) -#endif } // namespace cln