summary refs log tree commit diff homepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--torus.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/torus.h b/torus.h
index 23b4708..bb012f2 100644
--- a/torus.h
+++ b/torus.h
@@ -1,6 +1,7 @@
+#include <assert.h>
 #include <stdbool.h>
+#include <stddef.h>
 #include <stdint.h>
-#include <assert.h>
 
 #define ALIGNED(x) __attribute__((aligned(x)))
 
@@ -29,6 +30,8 @@ struct Tile {
     uint8_t colors[CELL_ROWS][CELL_COLS] ALIGNED(16);
 } ALIGNED(4096);
 static_assert(sizeof(struct Tile) == 4096, "struct Tile is page-sized");
+static_assert(offsetof(struct Tile, cells) == 16, "stable cells offset");
+static_assert(offsetof(struct Tile, colors) == 2016, "stable colors offset");
 
 #define TILE_ROWS (512)
 #define TILE_COLS (512)
highlight'> Previously the script tried to encode output from Pygments with the ASCII codec, which failed. Signed-off-by: Přemysl Janouch <p.janouch@gmail.com> 2014-01-08Add a suggestion to the manpagePřemysl Janouch So that people wishing to use "enable-http-clone" don't have to find out the correct settings on their own. Signed-off-by: Přemysl Janouch <p.janouch@gmail.com> 2014-01-08Fix the example configurationPřemysl Janouch "enable-git-clone" doesn't exist, replaced with "enable-http-clone". Signed-off-by: Přemysl Janouch <p.janouch@gmail.com> 2014-01-08Fix about-formatting.shPřemysl Janouch dash failed to parse the script. Signed-off-by: Přemysl Janouch <p.janouch@gmail.com> 2014-01-08Fix some spelling errorsPřemysl Janouch Signed-off-by: Přemysl Janouch <p.janouch@gmail.com> 2014-01-08filters: highlight.sh: add css comments for highlight 2.6 and 3.8Ferry Huberts