summaryrefslogtreecommitdiff
path: root/lib/ccan/ilog
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-05 16:42:50 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-12-05 16:42:50 +1030
commit3b390b754eb8edd43678bdd080b06f102766683d (patch)
tree6420770fc0d3b02ca685342efb47ff70e301e5e1 /lib/ccan/ilog
parentab2c07b8f0dec6fd82884b7864a399201c3d2ce3 (diff)
downloadsamba-3b390b754eb8edd43678bdd080b06f102766683d.tar.gz
samba-3b390b754eb8edd43678bdd080b06f102766683d.tar.bz2
samba-3b390b754eb8edd43678bdd080b06f102766683d.zip
lib/ccan/compiler, ilog: IDEMPOTENT "idempotent does not mean what you think it means"
Actually, I don't even think it means that. But rename it to something which is sane. Thanks to David Gibson for reporting. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit e764d0a27d2b6748ea7d343042ec7d6dda1f6aae)
Diffstat (limited to 'lib/ccan/ilog')
-rw-r--r--lib/ccan/ilog/ilog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ccan/ilog/ilog.h b/lib/ccan/ilog/ilog.h
index 1a471c2d34..e52f04233c 100644
--- a/lib/ccan/ilog/ilog.h
+++ b/lib/ccan/ilog/ilog.h
@@ -25,7 +25,7 @@
* return 1U << ilog32(i-1);
* }
*/
-int ilog32(uint32_t _v) IDEMPOTENT;
+int ilog32(uint32_t _v) CONST_FUNCTION;
/**
* ilog32_nz - Integer binary logarithm of a non-zero 32-bit value.
@@ -44,7 +44,7 @@ int ilog32(uint32_t _v) IDEMPOTENT;
* return ilog32_nz(i) - 1;
* }
*/
-int ilog32_nz(uint32_t _v) IDEMPOTENT;
+int ilog32_nz(uint32_t _v) CONST_FUNCTION;
/**
* ilog64 - Integer binary logarithm of a 64-bit value.
@@ -56,7 +56,7 @@ int ilog32_nz(uint32_t _v) IDEMPOTENT;
* See Also:
* ilog64_nz(), ilog32()
*/
-int ilog64(uint64_t _v) IDEMPOTENT;
+int ilog64(uint64_t _v) CONST_FUNCTION;
/**
* ilog64_nz - Integer binary logarithm of a non-zero 64-bit value.
@@ -68,7 +68,7 @@ int ilog64(uint64_t _v) IDEMPOTENT;
* See Also:
* ilog64(), ilog32_nz()
*/
-int ilog64_nz(uint64_t _v) IDEMPOTENT;
+int ilog64_nz(uint64_t _v) CONST_FUNCTION;
/**
* STATIC_ILOG_32 - The integer logarithm of an (unsigned, 32-bit) constant.