diff --git a/sys/i386/include/_limits.h b/sys/i386/include/_limits.h index 605a89504ccf..f757428c46a2 100644 --- a/sys/i386/include/_limits.h +++ b/sys/i386/include/_limits.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)limits.h 7.2 (Berkeley) 6/28/90 - * $Id: limits.h,v 1.2 1993/10/16 14:39:19 rgrimes Exp $ + * $Id: limits.h,v 1.3 1993/11/07 17:42:57 wollman Exp $ */ #ifndef _MACHINE_LIMITS_H_ @@ -59,4 +59,11 @@ #define ULONG_MAX 0xffffffff /* max value for an unsigned long */ #define LONG_MAX 0x7fffffff /* max value for a long */ #define LONG_MIN (-0x7fffffff-1) /* min value for a long */ + +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +#define UQUAD_MAX 0xffffffffffffffffLL /* max unsigned quad */ +#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */ +#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */ +#endif + #endif /* _MACHINE_LIMITS_H_ */ diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h index 8c7dc4a956b8..dc4e98cf8816 100644 --- a/sys/i386/include/endian.h +++ b/sys/i386/include/endian.h @@ -31,12 +31,18 @@ * SUCH DAMAGE. * * from: @(#)endian.h 7.8 (Berkeley) 4/3/91 - * $Id: endian.h,v 1.2 1993/10/16 14:39:15 rgrimes Exp $ + * $Id: endian.h,v 1.3 1993/11/07 17:42:52 wollman Exp $ */ #ifndef _MACHINE_ENDIAN_H_ #define _MACHINE_ENDIAN_H_ 1 +/* + * Define the order of 32-bit words in 64-bit words. + */ +#define _QUAD_HIGHWORD 1 +#define _QUAD_LOWWORD 0 + /* * Definitions for byte order, according to byte significance from low * address to high. diff --git a/sys/i386/include/limits.h b/sys/i386/include/limits.h index 605a89504ccf..f757428c46a2 100644 --- a/sys/i386/include/limits.h +++ b/sys/i386/include/limits.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)limits.h 7.2 (Berkeley) 6/28/90 - * $Id: limits.h,v 1.2 1993/10/16 14:39:19 rgrimes Exp $ + * $Id: limits.h,v 1.3 1993/11/07 17:42:57 wollman Exp $ */ #ifndef _MACHINE_LIMITS_H_ @@ -59,4 +59,11 @@ #define ULONG_MAX 0xffffffff /* max value for an unsigned long */ #define LONG_MAX 0x7fffffff /* max value for a long */ #define LONG_MIN (-0x7fffffff-1) /* min value for a long */ + +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +#define UQUAD_MAX 0xffffffffffffffffLL /* max unsigned quad */ +#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */ +#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */ +#endif + #endif /* _MACHINE_LIMITS_H_ */ diff --git a/sys/powerpc/include/_limits.h b/sys/powerpc/include/_limits.h index 605a89504ccf..f757428c46a2 100644 --- a/sys/powerpc/include/_limits.h +++ b/sys/powerpc/include/_limits.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)limits.h 7.2 (Berkeley) 6/28/90 - * $Id: limits.h,v 1.2 1993/10/16 14:39:19 rgrimes Exp $ + * $Id: limits.h,v 1.3 1993/11/07 17:42:57 wollman Exp $ */ #ifndef _MACHINE_LIMITS_H_ @@ -59,4 +59,11 @@ #define ULONG_MAX 0xffffffff /* max value for an unsigned long */ #define LONG_MAX 0x7fffffff /* max value for a long */ #define LONG_MIN (-0x7fffffff-1) /* min value for a long */ + +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +#define UQUAD_MAX 0xffffffffffffffffLL /* max unsigned quad */ +#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */ +#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */ +#endif + #endif /* _MACHINE_LIMITS_H_ */ diff --git a/sys/powerpc/include/limits.h b/sys/powerpc/include/limits.h index 605a89504ccf..f757428c46a2 100644 --- a/sys/powerpc/include/limits.h +++ b/sys/powerpc/include/limits.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)limits.h 7.2 (Berkeley) 6/28/90 - * $Id: limits.h,v 1.2 1993/10/16 14:39:19 rgrimes Exp $ + * $Id: limits.h,v 1.3 1993/11/07 17:42:57 wollman Exp $ */ #ifndef _MACHINE_LIMITS_H_ @@ -59,4 +59,11 @@ #define ULONG_MAX 0xffffffff /* max value for an unsigned long */ #define LONG_MAX 0x7fffffff /* max value for a long */ #define LONG_MIN (-0x7fffffff-1) /* min value for a long */ + +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +#define UQUAD_MAX 0xffffffffffffffffLL /* max unsigned quad */ +#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */ +#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */ +#endif + #endif /* _MACHINE_LIMITS_H_ */