Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sync If not __HAVE_ATOMIC64_OPS, do not force...
details: https://anonhg.NetBSD.org/src/rev/0c91204239d7
branches: trunk
changeset: 332912:0c91204239d7
user: martin <martin%NetBSD.org@localhost>
date: Sat Oct 11 17:46:58 2014 +0000
description:
If not __HAVE_ATOMIC64_OPS, do not force the test for 64bit types.
diffstat:
tests/lib/libc/sync/cpp_atomic_ops_linkable.cc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (38 lines):
diff -r 5b199bfe02b4 -r 0c91204239d7 tests/lib/libc/sync/cpp_atomic_ops_linkable.cc
--- a/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc Sat Oct 11 17:35:06 2014 +0000
+++ b/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc Sat Oct 11 17:46:58 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpp_atomic_ops_linkable.cc,v 1.1 2014/10/11 14:52:15 martin Exp $ */
+/* $NetBSD: cpp_atomic_ops_linkable.cc,v 1.2 2014/10/11 17:46:58 martin Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -35,6 +35,7 @@
*/
#include <atomic>
+#include <machine/types.h> // for __HAVE_ATOMIC64_OPS
template <class T>
class ATest {
@@ -79,16 +80,20 @@
ATest<uint_least16_t>();
ATest<int_least32_t>();
ATest<uint_least32_t>();
+#ifdef __HAVE_ATOMIC64_OPS
ATest<int_least64_t>();
ATest<uint_least64_t>();
+#endif
ATest<int_fast8_t>();
ATest<uint_fast8_t>();
ATest<int_fast16_t>();
ATest<uint_fast16_t>();
ATest<int_fast32_t>();
ATest<uint_fast32_t>();
+#ifdef __HAVE_ATOMIC64_OPS
ATest<int_fast64_t>();
ATest<uint_fast64_t>();
+#endif
ATest<intptr_t>();
ATest<uintptr_t>();
ATest<std::size_t>();
Home |
Main Index |
Thread Index |
Old Index