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 Use sizeof(__int128_t) for aarch64 and ...
details: https://anonhg.NetBSD.org/src/rev/4f2bd878bc9c
branches: trunk
changeset: 328028:4f2bd878bc9c
user: matt <matt%NetBSD.org@localhost>
date: Mon Mar 24 04:45:08 2014 +0000
description:
Use sizeof(__int128_t) for aarch64 and sizeof(long long) for ARM EABI
diffstat:
sys/arch/arm/include/cdefs.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r e1726ac3fd2e -r 4f2bd878bc9c sys/arch/arm/include/cdefs.h
--- a/sys/arch/arm/include/cdefs.h Mon Mar 24 04:03:25 2014 +0000
+++ b/sys/arch/arm/include/cdefs.h Mon Mar 24 04:45:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.13 2014/03/18 17:11:19 christos Exp $ */
+/* $NetBSD: cdefs.h,v 1.14 2014/03/24 04:45:08 matt Exp $ */
#ifndef _ARM_CDEFS_H_
#define _ARM_CDEFS_H_
@@ -49,8 +49,10 @@
#define _ARM_ARCH_DWORD_OK
#endif
-#if defined(__ARM_EABI__) || defined(__ARM_PCS_AAPCS64)
-#define __ALIGNBYTES ((size_t)(8 - 1))
+#if defined(__ARM_PCS_AAPCS64)
+#define __ALIGNBYTES (sizeof(__int128_t) - 1)
+#elif defined(__ARM_EABI__)
+#define __ALIGNBYTES (sizeof(long long) - 1)
#else
#define __ALIGNBYTES (sizeof(int) - 1)
#endif
Home |
Main Index |
Thread Index |
Old Index