adding libc/quad:

added _QUAD_HIGH/LOW
added (U_)QUAD_MAX/MIN
(from NetBSD)
This commit is contained in:
Andrew Moore 1993-12-19 05:14:46 +00:00
parent aaf08d94ca
commit 90d795a112
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=880
5 changed files with 39 additions and 5 deletions

View File

@ -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_ */

View File

@ -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.

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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_ */