projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57838dd
)
Added 32bit integer functions
author
khizmax
<libcds.dev@gmail.com>
Wed, 8 Mar 2017 20:17:23 +0000
(23:17 +0300)
committer
khizmax
<libcds.dev@gmail.com>
Wed, 8 Mar 2017 20:17:23 +0000
(23:17 +0300)
cds/algo/int_algo.h
patch
|
blob
|
history
diff --git
a/cds/algo/int_algo.h
b/cds/algo/int_algo.h
index cc6cfd26702430c3e76193fe13f349bc60c58201..eb208d83a19de30ea305e3d7d9d970d276b4ec0a 100644
(file)
--- a/
cds/algo/int_algo.h
+++ b/
cds/algo/int_algo.h
@@
-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;
}
-#
el
if 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