diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-27 16:50:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-27 16:50:00 +0100 |
commit | 04beb6dc3ca878aab48f283c1dc6699ca6a8a27b (patch) | |
tree | 0a20683c76645e69b7236355df634fdd32842766 /src/types.h | |
parent | bb0235f7d8db0c0ea814118593da973609352089 (diff) | |
download | fastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.tar fastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.zip |
Add an aligned uint8_t type data_t and use it to ensure the alignment of various buffers on the stack
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index 17c058c..964518c 100644 --- a/src/types.h +++ b/src/types.h @@ -132,6 +132,8 @@ typedef struct fastd_string_stack fastd_string_stack_t; typedef struct fastd_resolve_return fastd_resolve_return_t; +typedef uint8_t data_t __attribute__((aligned(8))); + typedef union fastd_block128 { uint8_t b[16]; uint64_t qw[2]; |