diff --git a/sql/sql_bitmap.h b/sql/sql_bitmap.h index b37905e205b..cce80ce2bc8 100644 --- a/sql/sql_bitmap.h +++ b/sql/sql_bitmap.h @@ -27,6 +27,10 @@ #include #include + +template class Bitmap +{ + /* Workaround GCC optimizer bug (generating SSE instuctions on unaligned data) */ @@ -39,8 +43,6 @@ #pragma GCC target ("no-sse") #endif -template class Bitmap -{ uint32 buffer[(width + 31) / 32]; public: Bitmap() @@ -276,13 +278,15 @@ public: } enum { BITMAP_END = width }; }; -}; #ifdef NEED_GCC_NO_SSE_WORKAROUND #pragma GCC pop_options #undef NEED_GCC_NO_SSE_WORKAROUND #endif +}; + + /* An iterator to quickly walk over bits in ulonglong bitmap. */ class Table_map_iterator {