summaryrefslogtreecommitdiff
path: root/include/my_bit.h
diff options
context:
space:
mode:
authorjani@hynda.mysql.fi <>2007-10-15 18:22:19 +0300
committerjani@hynda.mysql.fi <>2007-10-15 18:22:19 +0300
commitd6f7a6a1ecd9121095f9e4f8c2ee155e3fd0d735 (patch)
treef902bfd8f9bfb0cc0a1e566b847250bc22061542 /include/my_bit.h
parent7887babe69412b6f33f6cb782f468e9b58695fb9 (diff)
downloadmariadb-git-d6f7a6a1ecd9121095f9e4f8c2ee155e3fd0d735.tar.gz
Fixes to merge between 5.1-main and 5.1-marvel
Diffstat (limited to 'include/my_bit.h')
-rw-r--r--include/my_bit.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/my_bit.h b/include/my_bit.h
index 58e8bb39683..2e464e89049 100644
--- a/include/my_bit.h
+++ b/include/my_bit.h
@@ -2,6 +2,7 @@
Some useful bit functions
*/
+C_MODE_START
#ifdef HAVE_INLINE
extern const char _my_bits_nbits[256];
@@ -97,11 +98,12 @@ STATIC_INLINE uint32 my_reverse_bits(uint32 key)
_my_bits_reverse_table[(key>>24) ];
}
-#else
+#else /* HAVE_INLINE */
extern uint my_bit_log2(ulong value);
extern uint32 my_round_up_to_next_power(uint32 v);
uint32 my_clear_highest_bit(uint32 v);
uint32 my_reverse_bits(uint32 key);
extern uint my_count_bits(ulonglong v);
extern uint my_count_bits_ushort(ushort v);
-#endif
+#endif /* HAVE_INLINE */
+C_MODE_END