Преглед на файлове

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. */