diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2009-09-01 00:02:09 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2009-09-01 00:02:09 +0400 |
commit | d762bf21cc0fa7a96b7135b4d5cf716d15a32fc8 (patch) | |
tree | 03d5085bbb778a68766cec13706559c049ffb6bf /include/my_global.h | |
parent | 005c24e9739f1050e846cef8a3e75c4671b30a7b (diff) | |
download | mariadb-git-d762bf21cc0fa7a96b7135b4d5cf716d15a32fc8.tar.gz |
MWL#17: Table-elimination
- Addressing review feedback, generation 4.
include/my_global.h:
Make ALIGN_PTR's action correspond to that of ALIGN_SIZE
sql/item.cc:
MWL#17: Table-elimination
- Review feedback: function renames, better comments
sql/item.h:
MWL#17: Table-elimination
- Review feedback: function renames, better comments
sql/item_cmpfunc.cc:
MWL#17: Table-elimination
- Review feedback: function renames, better comments
sql/item_subselect.cc:
MWL#17: Table-elimination
- Review feedback: function renames, better comments
sql/item_subselect.h:
MWL#17: Table-elimination
- Review feedback: function renames, better comments
sql/opt_table_elimination.cc:
MWL#17: Table-elimination
- Addressing review feedback, generation 4: abstract everything in case
we would need to change it for something else in the future.
sql/sql_list.h:
MWL#17: Table-elimination
- Introduce exchange_sort(List<T> ...) template function
sql/sql_select.cc:
MWL#17: Table-elimination
- Review feedback: function renames, better comments
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h index b350ece971b..6b06b84eb24 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -950,8 +950,7 @@ typedef long long my_ptrdiff_t; #define MY_ALIGN(A,L) (((A) + (L) - 1) & ~((L) - 1)) #define ALIGN_SIZE(A) MY_ALIGN((A),sizeof(double)) /* Size to make adressable obj. */ -#define ALIGN_PTR(A, t) ((t*) MY_ALIGN((A),sizeof(t))) - /* Offset of field f in structure t */ +#define ALIGN_PTR(A, t) ((t*) MY_ALIGN((A), sizeof(double))) #define OFFSET(t, f) ((size_t)(char *)&((t *)0)->f) #define ADD_TO_PTR(ptr,size,type) (type) ((uchar*) (ptr)+size) #define PTR_BYTE_DIFF(A,B) (my_ptrdiff_t) ((uchar*) (A) - (uchar*) (B)) |