diff options
author | Damjan Marion <damarion@cisco.com> | 2021-10-12 15:34:31 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-10-12 19:48:02 +0000 |
commit | 21b4e337b67c8de9f1b7f59a86f1ec4e5f02372b (patch) | |
tree | 6ad45e7135c928942583f4ded29ff4bf06576a69 /src/vppinfra/types.h | |
parent | e8f57d593ea8bdfdff2e32562a520501b735f012 (diff) |
vppinfra: use unaligned non-vector load/stores in x86 memcpy
Type: fix
Change-Id: I54ef23a52f05cc95210a736f84b927dd69b8a6f7
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/types.h')
-rw-r--r-- | src/vppinfra/types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vppinfra/types.h b/src/vppinfra/types.h index c5e7f09ef23..b52d6034ae9 100644 --- a/src/vppinfra/types.h +++ b/src/vppinfra/types.h @@ -163,6 +163,13 @@ typedef f64 fword; __attribute__ ((aligned (align), packed)); \ } *) (addr))->_data) +typedef u16 u16u __attribute__ ((aligned (1))); +typedef u32 u32u __attribute__ ((aligned (1))); +typedef u64 u64u __attribute__ ((aligned (1))); +typedef i16 i16u __attribute__ ((aligned (1))); +typedef i32 i32u __attribute__ ((aligned (1))); +typedef i64 i64u __attribute__ ((aligned (1))); + #endif /* included_clib_types_h */ /* |