summaryrefslogtreecommitdiff
path: root/include/my_bitmap.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-11-24 06:15:35 +0200
committerunknown <monty@mysql.com>2005-11-24 06:15:35 +0200
commit0db7a010e4696a289c38e11eba9d6c6528e45d5c (patch)
tree679304b4beec8c60c002eae5bc3e5a5438cb6df3 /include/my_bitmap.h
parent81b2bbac056f21b0783f21a5830c07aba4850d85 (diff)
downloadmariadb-git-0db7a010e4696a289c38e11eba9d6c6528e45d5c.tar.gz
Added bitmap_buffer_size()
Removed valgrind warnings when using not aligned bitmap buffer size Added setting of thread_stack include/my_bitmap.h: Added bitmap_buffer_size() sql/handler.cc: use bitmap_buffer_size() sql/opt_range.cc: use bitmap_buffer_size() sql/sql_insert.cc: Use bitmap_buffer_size() sql/sql_parse.cc: Added setting of thread_stack when taking thread from thread cache sql/sql_plugin.cc: Set thread_stack
Diffstat (limited to 'include/my_bitmap.h')
-rw-r--r--include/my_bitmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_bitmap.h b/include/my_bitmap.h
index b7ad575b2d3..33cd61de8a0 100644
--- a/include/my_bitmap.h
+++ b/include/my_bitmap.h
@@ -84,6 +84,7 @@ extern void bitmap_lock_xor(MY_BITMAP *map, const MY_BITMAP *map2);
extern void bitmap_lock_invert(MY_BITMAP *map);
#endif
/* Fast, not thread safe, bitmap functions */
+#define bitmap_buffer_size(bits) 4*(((bits)+31)/32);
#define no_bytes_in_map(map) (((map)->n_bits + 7)/8)
#define no_words_in_map(map) (((map)->n_bits + 31)/32)
#define bytes_word_aligned(bytes) (4*((bytes + 3)/4))