From: khizmax Date: Wed, 8 Mar 2017 20:17:23 +0000 (+0300) Subject: Added 32bit integer functions X-Git-Tag: v2.3.0~123 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c731867624cfdbdde42166f3dc14affef7c7dba2;p=libcds.git Added 32bit integer functions --- diff --git a/cds/algo/int_algo.h b/cds/algo/int_algo.h index cc6cfd26..eb208d83 100644 --- a/cds/algo/int_algo.h +++ b/cds/algo/int_algo.h @@ -34,7 +34,6 @@ #include namespace cds { namespace beans { -#if CDS_BUILD_BITS == 64 /// Returns largest previous integer for log2( n ) static inline size_t log2floor( size_t n ) { @@ -98,7 +97,7 @@ namespace cds { namespace beans { return is_power2(n) ? log2floor(n) : 0; } -#elif CDS_BUILD_BITS == 32 +#if CDS_BUILD_BITS == 32 //@cond // 64bit specializations @@ -166,7 +165,7 @@ namespace cds { namespace beans { } //@endcond -#endif +#endif //#if CDS_BUILD_BITS == 32 }} // namespace cds::beans