From c731867624cfdbdde42166f3dc14affef7c7dba2 Mon Sep 17 00:00:00 2001 From: khizmax Date: Wed, 8 Mar 2017 23:17:23 +0300 Subject: [PATCH] Added 32bit integer functions --- cds/algo/int_algo.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.34.1