소스 검색

Align block header to 32 bytes

Ioannis Koutras 13 년 전
부모
커밋
0ff643dd91
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      private-include/block_header.h

+ 1 - 1
private-include/block_header.h

@@ -34,7 +34,7 @@
 #include "linked_lists/linked_lists.h"
 
 /** The header structure of every memory block inside a heap. */
-typedef struct block_header_s {
+typedef struct __attribute__((__aligned__(32))) block_header_s {
     size_t size; /**< The LSB represents the availability of the block (1
                    for used, 0 for free), the rest the size of the data
                    part. */