Sync with x86_64 the quad constants. No reason to be different
This commit is contained in:
parent
b250f22a56
commit
107bc7662e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: limits.h,v 1.23 2019/01/21 20:28:18 dholland Exp $ */
|
||||
/* $NetBSD: limits.h,v 1.24 2024/03/14 15:51:10 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 The Regents of the University of California.
|
||||
|
@ -75,11 +75,9 @@
|
|||
#define SSIZE_MIN LONG_MIN /* min value for a ssize_t */
|
||||
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
|
||||
|
||||
/* GCC requires that quad constants be written as expressions. */
|
||||
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */
|
||||
/* max value for a quad_t */
|
||||
#define QUAD_MAX ((quad_t)(UQUAD_MAX >> 1))
|
||||
#define QUAD_MIN (-QUAD_MAX-1) /* min value for a quad_t */
|
||||
#define UQUAD_MAX 0xffffffffffffffffULL /* max unsigned quad */
|
||||
#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */
|
||||
#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */
|
||||
|
||||
#endif /* _NETBSD_SOURCE */
|
||||
#endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE */
|
||||
|
|
Loading…
Reference in New Issue