From e653d46f7cc8cd50c5bd94bceb522aa78157c818 Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Sat, 12 Mar 2011 04:03:05 +0000 Subject: Add missing __statement modifiers in various endian.h files and correct %1 to %0 in the i386 asm. asm correction ok drahn@ --- sys/arch/vax/include/endian.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/vax/include') diff --git a/sys/arch/vax/include/endian.h b/sys/arch/vax/include/endian.h index f81c35714b0..cb190339d94 100644 --- a/sys/arch/vax/include/endian.h +++ b/sys/arch/vax/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.14 2011/03/11 15:17:08 pirofti Exp $ */ +/* $OpenBSD: endian.h,v 1.15 2011/03/12 04:03:04 guenther Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -31,7 +31,7 @@ #define __swap64md __swap64gen -#define __swap32md(x) ({ \ +#define __swap32md(x) __statement({ \ u_int32_t __swap32md_y, __swap32md_x = (x); \ \ __asm ("rotl $-8, %1, %0; insv %0, $16, $8, %0; " \ @@ -40,7 +40,7 @@ __swap32md_y; \ }) -#define __swap16md(x) ({ \ +#define __swap16md(x) __statement({ \ u_int16_t __swap16md_y, __swap16md_x = (x); \ \ __asm ("rotl $8, %1, %0; rotl $-8, %1, r1; movb r1, %0; " \ -- cgit v1.2.3