Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include fix arm int_const.h for aarch64



details:   https://anonhg.NetBSD.org/src/rev/4c755e51a145
branches:  trunk
changeset: 834356:4c755e51a145
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Aug 10 17:05:22 2018 +0000

description:
fix arm int_const.h for aarch64

diffstat:

 sys/arch/arm/include/int_const.h |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r ae26028b2f14 -r 4c755e51a145 sys/arch/arm/include/int_const.h
--- a/sys/arch/arm/include/int_const.h  Fri Aug 10 16:17:29 2018 +0000
+++ b/sys/arch/arm/include/int_const.h  Fri Aug 10 17:05:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_const.h,v 1.4 2014/07/25 21:43:13 joerg Exp $      */
+/*     $NetBSD: int_const.h,v 1.5 2018/08/10 17:05:22 jakllsch Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -44,17 +44,31 @@
 #define        INT8_C(c)       c
 #define        INT16_C(c)      c
 #define        INT32_C(c)      c
+#ifdef _LP64
+#define        INT64_C(c)      c ## L
+#else
 #define        INT64_C(c)      c ## LL
+#endif
 
 #define        UINT8_C(c)      c
 #define        UINT16_C(c)     c
 #define        UINT32_C(c)     c ## U
+#ifdef _LP64
+#define        UINT64_C(c)     c ## UL
+#else
 #define        UINT64_C(c)     c ## ULL
+#endif
 
 /* 7.18.4.2 Macros for greatest-width integer constants */
 
+#ifdef _LP64
+#define        INTMAX_C(c)     c ## L
+#define        UINTMAX_C(c)    c ## UL
+#else
 #define        INTMAX_C(c)     c ## LL
 #define        UINTMAX_C(c)    c ## ULL
 #endif
 
+#endif /* !__INTMAX_C_SUFFIX__ */
+
 #endif /* !_ARM_INT_CONST_H_ */



Home | Main Index | Thread Index | Old Index