From e52bc1d4f01547826a2dab36875867ce26f785f3 Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 6 Dec 1993 07:25:07 +0000 Subject: [PATCH] Add quad stuff, etc. --- sys/arch/hp300/include/endian.h | 16 +++++++++++++++- sys/arch/m68k/include/endian.h | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/sys/arch/hp300/include/endian.h b/sys/arch/hp300/include/endian.h index 87df097660b3..3c9911d6c2b7 100644 --- a/sys/arch/hp300/include/endian.h +++ b/sys/arch/hp300/include/endian.h @@ -31,9 +31,19 @@ * SUCH DAMAGE. * * from: @(#)endian.h 7.7 (Berkeley) 4/3/91 - * $Id: endian.h,v 1.3 1993/10/13 07:51:09 cgd Exp $ + * $Id: endian.h,v 1.4 1993/12/06 07:25:07 mycroft Exp $ */ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ + +/* + * Define the order of 32-bit words in 64-bit words. + */ +#define _QUAD_HIGHWORD 0 +#define _QUAD_LOWWORD 1 + +#ifndef _POSIX_SOURCE /* * Definitions for byte order, according to byte significance from low * address to high. @@ -74,3 +84,7 @@ __END_DECLS #define HTONL(x) (x) = htonl((u_long)x) #define HTONS(x) (x) = htons((u_short)x) #endif + +#endif /* _POSIX_SOURCE */ + +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/m68k/include/endian.h b/sys/arch/m68k/include/endian.h index 87df097660b3..3c9911d6c2b7 100644 --- a/sys/arch/m68k/include/endian.h +++ b/sys/arch/m68k/include/endian.h @@ -31,9 +31,19 @@ * SUCH DAMAGE. * * from: @(#)endian.h 7.7 (Berkeley) 4/3/91 - * $Id: endian.h,v 1.3 1993/10/13 07:51:09 cgd Exp $ + * $Id: endian.h,v 1.4 1993/12/06 07:25:07 mycroft Exp $ */ +#ifndef _MACHINE_ENDIAN_H_ +#define _MACHINE_ENDIAN_H_ + +/* + * Define the order of 32-bit words in 64-bit words. + */ +#define _QUAD_HIGHWORD 0 +#define _QUAD_LOWWORD 1 + +#ifndef _POSIX_SOURCE /* * Definitions for byte order, according to byte significance from low * address to high. @@ -74,3 +84,7 @@ __END_DECLS #define HTONL(x) (x) = htonl((u_long)x) #define HTONS(x) (x) = htons((u_short)x) #endif + +#endif /* _POSIX_SOURCE */ + +#endif /* _MACHINE_ENDIAN_H_ */