/dports/multimedia/obs-studio/obs-studio-27.1.3/libobs/media-io/ |
H A D | video-frame.c | 42 ALIGN_SIZE(size, alignment); in video_frame_init() 48 ALIGN_SIZE(size, alignment); in video_frame_init() 51 ALIGN_SIZE(size, alignment); in video_frame_init() 63 ALIGN_SIZE(size, alignment); in video_frame_init() 67 ALIGN_SIZE(size, alignment); in video_frame_init() 77 ALIGN_SIZE(size, alignment); in video_frame_init() 88 ALIGN_SIZE(size, alignment); in video_frame_init() 99 ALIGN_SIZE(size, alignment); in video_frame_init() 106 ALIGN_SIZE(size, alignment); in video_frame_init() 117 ALIGN_SIZE(size, alignment); in video_frame_init() [all …]
|
/dports/security/nettle/nettle-3.7.3/testsuite/ |
H A D | memxor-test.c | 5 #define ALIGN_SIZE 16 macro 9 # define ROUND_DOWN(x) ((x) & (-ALIGN_SIZE)) 10 # define ROUND_UP(x) ROUND_DOWN((x)+(ALIGN_SIZE-1)) 38 offset = (uintptr_t) (buf) % ALIGN_SIZE; in set_align() 43 buf += (align + ALIGN_SIZE - offset); in set_align() 52 uint8_t dst_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor() 53 uint8_t src_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor() 83 uint8_t dst_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor3() 84 uint8_t a_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor3() 85 uint8_t b_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor3() [all …]
|
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/nettle-src-3.5.1-2/nettle/testsuite/ |
H A D | memxor-test.c | 5 #define ALIGN_SIZE 16 macro 9 # define ROUND_DOWN(x) ((x) & (-ALIGN_SIZE)) 10 # define ROUND_UP(x) ROUND_DOWN((x)+(ALIGN_SIZE-1)) 38 offset = (uintptr_t) (buf) % ALIGN_SIZE; in set_align() 43 buf += (align + ALIGN_SIZE - offset); in set_align() 52 uint8_t dst_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor() 53 uint8_t src_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor() 83 uint8_t dst_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor3() 84 uint8_t a_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor3() 85 uint8_t b_buf[MAX_SIZE + ALIGN_SIZE + 1]; in test_memxor3() [all …]
|
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/mysys/ |
H A D | my_lib.cc | 72 (char *)buffer + ALIGN_SIZE(sizeof(MY_DIR))); in my_dirend() 74 free_root((MEM_ROOT *)((char *)buffer + ALIGN_SIZE(sizeof(MY_DIR)) + in my_dirend() 75 ALIGN_SIZE(sizeof(Entries_array))), in my_dirend() 102 ALIGN_SIZE(sizeof(MY_DIR)) + in my_dir() 103 ALIGN_SIZE(sizeof(Entries_array)) + sizeof(MEM_ROOT), in my_dir() 107 rawmem = pointer_cast<Entries_array *>(buffer + ALIGN_SIZE(sizeof(MY_DIR))); in my_dir() 109 names_storage = (MEM_ROOT *)(buffer + ALIGN_SIZE(sizeof(MY_DIR)) + in my_dir() 110 ALIGN_SIZE(sizeof(Entries_array))); in my_dir() 216 ALIGN_SIZE(sizeof(MY_DIR)) + in my_dir() 221 rawmem = buffer + ALIGN_SIZE(sizeof(MY_DIR)); in my_dir() [all …]
|
/dports/databases/mariadb105-client/mariadb-10.5.15/libmariadb/libmariadb/ |
H A D | ma_alloc.c | 36 (MA_USED_MEM*) malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(MA_USED_MEM))))) in ma_init_alloc_root() 38 mem_root->free->size=pre_alloc_size+ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_init_alloc_root() 50 Size+=ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 60 return (void *) (((char*) next)+ALIGN_SIZE(sizeof(MA_USED_MEM))); in ma_alloc_root() 67 Size= ALIGN_SIZE(Size); in ma_alloc_root() 87 get_size= MAX(Size+ALIGN_SIZE(sizeof(MA_USED_MEM)), in ma_alloc_root() 99 next->left= get_size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 141 root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_free_root() 176 tot_length+=ALIGN_SIZE(length); in ma_multi_malloc() 189 res+=ALIGN_SIZE(length); in ma_multi_malloc()
|
/dports/databases/mariadb104-server/mariadb-10.4.24/libmariadb/libmariadb/ |
H A D | ma_alloc.c | 36 (MA_USED_MEM*) malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(MA_USED_MEM))))) in ma_init_alloc_root() 38 mem_root->free->size=pre_alloc_size+ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_init_alloc_root() 50 Size+=ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 60 return (void *) (((char*) next)+ALIGN_SIZE(sizeof(MA_USED_MEM))); in ma_alloc_root() 67 Size= ALIGN_SIZE(Size); in ma_alloc_root() 87 get_size= MAX(Size+ALIGN_SIZE(sizeof(MA_USED_MEM)), in ma_alloc_root() 99 next->left= get_size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 141 root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_free_root() 176 tot_length+=ALIGN_SIZE(length); in ma_multi_malloc() 189 res+=ALIGN_SIZE(length); in ma_multi_malloc()
|
/dports/databases/mariadb104-client/mariadb-10.4.24/libmariadb/libmariadb/ |
H A D | ma_alloc.c | 36 (MA_USED_MEM*) malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(MA_USED_MEM))))) in ma_init_alloc_root() 38 mem_root->free->size=pre_alloc_size+ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_init_alloc_root() 50 Size+=ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 60 return (void *) (((char*) next)+ALIGN_SIZE(sizeof(MA_USED_MEM))); in ma_alloc_root() 67 Size= ALIGN_SIZE(Size); in ma_alloc_root() 87 get_size= MAX(Size+ALIGN_SIZE(sizeof(MA_USED_MEM)), in ma_alloc_root() 99 next->left= get_size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 141 root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_free_root() 176 tot_length+=ALIGN_SIZE(length); in ma_multi_malloc() 189 res+=ALIGN_SIZE(length); in ma_multi_malloc()
|
/dports/databases/mariadb105-server/mariadb-10.5.15/libmariadb/libmariadb/ |
H A D | ma_alloc.c | 36 (MA_USED_MEM*) malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(MA_USED_MEM))))) in ma_init_alloc_root() 38 mem_root->free->size=pre_alloc_size+ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_init_alloc_root() 50 Size+=ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 60 return (void *) (((char*) next)+ALIGN_SIZE(sizeof(MA_USED_MEM))); in ma_alloc_root() 67 Size= ALIGN_SIZE(Size); in ma_alloc_root() 87 get_size= MAX(Size+ALIGN_SIZE(sizeof(MA_USED_MEM)), in ma_alloc_root() 99 next->left= get_size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 141 root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_free_root() 176 tot_length+=ALIGN_SIZE(length); in ma_multi_malloc() 189 res+=ALIGN_SIZE(length); in ma_multi_malloc()
|
/dports/databases/mariadb103-server/mariadb-10.3.34/libmariadb/libmariadb/ |
H A D | ma_alloc.c | 36 (MA_USED_MEM*) malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(MA_USED_MEM))))) in ma_init_alloc_root() 38 mem_root->free->size=pre_alloc_size+ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_init_alloc_root() 50 Size+=ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 60 return (void *) (((char*) next)+ALIGN_SIZE(sizeof(MA_USED_MEM))); in ma_alloc_root() 67 Size= ALIGN_SIZE(Size); in ma_alloc_root() 87 get_size= MAX(Size+ALIGN_SIZE(sizeof(MA_USED_MEM)), in ma_alloc_root() 99 next->left= get_size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 141 root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_free_root() 176 tot_length+=ALIGN_SIZE(length); in ma_multi_malloc() 189 res+=ALIGN_SIZE(length); in ma_multi_malloc()
|
/dports/databases/mariadb103-client/mariadb-10.3.34/libmariadb/libmariadb/ |
H A D | ma_alloc.c | 36 (MA_USED_MEM*) malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(MA_USED_MEM))))) in ma_init_alloc_root() 38 mem_root->free->size=pre_alloc_size+ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_init_alloc_root() 50 Size+=ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 60 return (void *) (((char*) next)+ALIGN_SIZE(sizeof(MA_USED_MEM))); in ma_alloc_root() 67 Size= ALIGN_SIZE(Size); in ma_alloc_root() 87 get_size= MAX(Size+ALIGN_SIZE(sizeof(MA_USED_MEM)), in ma_alloc_root() 99 next->left= get_size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 141 root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_free_root() 176 tot_length+=ALIGN_SIZE(length); in ma_multi_malloc() 189 res+=ALIGN_SIZE(length); in ma_multi_malloc()
|
/dports/databases/mariadb-connector-c/mariadb-connector-c-3.2.4-src/libmariadb/ |
H A D | ma_alloc.c | 36 (MA_USED_MEM*) malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(MA_USED_MEM))))) in ma_init_alloc_root() 38 mem_root->free->size=pre_alloc_size+ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_init_alloc_root() 50 Size+=ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 60 return (void *) (((char*) next)+ALIGN_SIZE(sizeof(MA_USED_MEM))); in ma_alloc_root() 67 Size= ALIGN_SIZE(Size); in ma_alloc_root() 87 get_size= MAX(Size+ALIGN_SIZE(sizeof(MA_USED_MEM)), in ma_alloc_root() 99 next->left= get_size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_alloc_root() 141 root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); in ma_free_root() 176 tot_length+=ALIGN_SIZE(length); in ma_multi_malloc() 189 res+=ALIGN_SIZE(length); in ma_multi_malloc()
|
/dports/databases/percona56-server/percona-server-5.6.51-91.0/mysys/ |
H A D | my_alloc.c | 75 (USED_MEM*) my_malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(USED_MEM)), in init_alloc_root() 117 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 134 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 184 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 214 length= ALIGN_SIZE(length); in alloc_root() 233 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 245 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 295 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 308 res+= ALIGN_SIZE(length); in multi_alloc_root() 325 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/percona56-client/percona-server-5.6.51-91.0/mysys/ |
H A D | my_alloc.c | 75 (USED_MEM*) my_malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(USED_MEM)), in init_alloc_root() 117 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 134 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 184 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 214 length= ALIGN_SIZE(length); in alloc_root() 233 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 245 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 295 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 308 res+= ALIGN_SIZE(length); in multi_alloc_root() 325 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/percona-pam-for-mysql/percona-server-5.6.51-91.0/mysys/ |
H A D | my_alloc.c | 75 (USED_MEM*) my_malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(USED_MEM)), in init_alloc_root() 117 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 134 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 184 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 214 length= ALIGN_SIZE(length); in alloc_root() 233 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 245 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 295 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 308 res+= ALIGN_SIZE(length); in multi_alloc_root() 325 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mysqlwsrep56-server/mysql-wsrep-wsrep_5.6.51-25.33/mysys/ |
H A D | my_alloc.c | 75 (USED_MEM*) my_malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(USED_MEM)), in init_alloc_root() 117 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 134 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 184 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 214 length= ALIGN_SIZE(length); in alloc_root() 233 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 245 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 295 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 308 res+= ALIGN_SIZE(length); in multi_alloc_root() 325 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mysql56-client/mysql-5.6.51/mysys/ |
H A D | my_alloc.c | 75 (USED_MEM*) my_malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(USED_MEM)), in init_alloc_root() 117 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 134 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 184 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 214 length= ALIGN_SIZE(length); in alloc_root() 233 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 245 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 295 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 308 res+= ALIGN_SIZE(length); in multi_alloc_root() 325 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mysql55-client/mysql-5.5.62/mysys/ |
H A D | my_alloc.c | 63 (USED_MEM*) my_malloc(pre_alloc_size+ ALIGN_SIZE(sizeof(USED_MEM)), in init_alloc_root() 102 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 119 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 165 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 195 length= ALIGN_SIZE(length); in alloc_root() 214 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 226 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 276 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 289 res+= ALIGN_SIZE(length); in multi_alloc_root() 308 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mariadb103-server/mariadb-10.3.34/mysys/ |
H A D | my_alloc.c | 124 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 141 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 194 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 209 ALIGN_SIZE(sizeof(USED_MEM))))); in alloc_root() 229 length= ALIGN_SIZE(length) + REDZONE_SIZE; in alloc_root() 248 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 264 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 321 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 334 res+= ALIGN_SIZE(length); in multi_alloc_root() 353 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mariadb104-server/mariadb-10.4.24/mysys/ |
H A D | my_alloc.c | 124 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 141 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 194 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 209 ALIGN_SIZE(sizeof(USED_MEM))))); in alloc_root() 229 length= ALIGN_SIZE(length) + REDZONE_SIZE; in alloc_root() 248 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 264 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 321 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 334 res+= ALIGN_SIZE(length); in multi_alloc_root() 353 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mariadb104-client/mariadb-10.4.24/mysys/ |
H A D | my_alloc.c | 124 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 141 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 194 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 209 ALIGN_SIZE(sizeof(USED_MEM))))); in alloc_root() 229 length= ALIGN_SIZE(length) + REDZONE_SIZE; in alloc_root() 248 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 264 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 321 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 334 res+= ALIGN_SIZE(length); in multi_alloc_root() 353 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mariadb103-client/mariadb-10.3.34/mysys/ |
H A D | my_alloc.c | 124 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 141 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 194 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 209 ALIGN_SIZE(sizeof(USED_MEM))))); in alloc_root() 229 length= ALIGN_SIZE(length) + REDZONE_SIZE; in alloc_root() 248 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 264 next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 321 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 334 res+= ALIGN_SIZE(length); in multi_alloc_root() 353 next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/percona57-server/percona-server-5.7.36-39/mysys/ |
H A D | my_alloc.c | 133 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 150 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 220 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 239 next->left= (uint)(length - ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 261 length= ALIGN_SIZE(length); in alloc_root() 280 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 302 next->left= (uint)(get_size-ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 352 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 365 res+= ALIGN_SIZE(length); in multi_alloc_root() 382 next->left= next->size - (uint)ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/mysys/ |
H A D | my_alloc.c | 133 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 150 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 220 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 239 next->left= (uint)(length - ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 261 length= ALIGN_SIZE(length); in alloc_root() 280 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 302 next->left= (uint)(get_size-ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 352 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 365 res+= ALIGN_SIZE(length); in multi_alloc_root() 382 next->left= next->size - (uint)ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/percona57-client/percona-server-5.7.36-39/mysys/ |
H A D | my_alloc.c | 133 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 150 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 220 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 239 next->left= (uint)(length - ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 261 length= ALIGN_SIZE(length); in alloc_root() 280 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 302 next->left= (uint)(get_size-ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 352 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 365 res+= ALIGN_SIZE(length); in multi_alloc_root() 382 next->left= next->size - (uint)ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/mysys/ |
H A D | my_alloc.c | 133 size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); in reset_root_defaults() 150 if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) in reset_root_defaults() 220 length+=ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 239 next->left= (uint)(length - ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 261 length= ALIGN_SIZE(length); in alloc_root() 280 get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); in alloc_root() 302 next->left= (uint)(get_size-ALIGN_SIZE(sizeof(USED_MEM))); in alloc_root() 352 tot_length+= ALIGN_SIZE(length); in multi_alloc_root() 365 res+= ALIGN_SIZE(length); in multi_alloc_root() 382 next->left= next->size - (uint)ALIGN_SIZE(sizeof(USED_MEM)); in mark_blocks_free() [all …]
|