From 21b4e337b67c8de9f1b7f59a86f1ec4e5f02372b Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 12 Oct 2021 15:34:31 +0200 Subject: vppinfra: use unaligned non-vector load/stores in x86 memcpy Type: fix Change-Id: I54ef23a52f05cc95210a736f84b927dd69b8a6f7 Signed-off-by: Damjan Marion --- src/vppinfra/types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vppinfra/types.h') 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 */ /* -- cgit 1.2.3-korg