From 56f54af21d18f9fdd471b81db77a3942b0aa4d9c Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 12 Oct 2021 20:30:02 +0200 Subject: vppinfra: new memcpy for x86_64 Change-Id: I5a5055580479960ac53e3f989aa188faf57fb05d Type: improvement Signed-off-by: Damjan Marion --- src/vppinfra/types.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/vppinfra/types.h') diff --git a/src/vppinfra/types.h b/src/vppinfra/types.h index 598061bb3e8..34b8b078fbf 100644 --- a/src/vppinfra/types.h +++ b/src/vppinfra/types.h @@ -165,12 +165,12 @@ 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))); +typedef u16 u16u __attribute__ ((aligned (1), __may_alias__)); +typedef u32 u32u __attribute__ ((aligned (1), __may_alias__)); +typedef u64 u64u __attribute__ ((aligned (1), __may_alias__)); +typedef i16 i16u __attribute__ ((aligned (1), __may_alias__)); +typedef i32 i32u __attribute__ ((aligned (1), __may_alias__)); +typedef i64 i64u __attribute__ ((aligned (1), __may_alias__)); #endif /* included_clib_types_h */ -- cgit 1.2.3-korg