Added 32bit integer functions
authorkhizmax <libcds.dev@gmail.com>
Wed, 8 Mar 2017 20:17:23 +0000 (23:17 +0300)
committerkhizmax <libcds.dev@gmail.com>
Wed, 8 Mar 2017 20:17:23 +0000 (23:17 +0300)
cds/algo/int_algo.h

index cc6cfd26702430c3e76193fe13f349bc60c58201..eb208d83a19de30ea305e3d7d9d970d276b4ec0a 100644 (file)
@@ -34,7 +34,6 @@
 #include <cds/algo/bitop.h>
 
 namespace cds { namespace beans {
-#if CDS_BUILD_BITS == 64
     /// Returns largest previous integer for <tt>log2( n )</tt>
     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