Support x32
authorAaron M. Ucko <ucko@debian.org>
Thu, 2 Dec 2021 02:37:42 +0000 (21:37 -0500)
committerAaron M. Ucko <ucko@debian.org>
Fri, 26 Jul 2024 00:07:36 +0000 (20:07 -0400)
Avoid picking up wrong inline assembly.

Gbp-Pq: Name support_x32

c++/include/corelib/impl/ncbi_atomic_defs.h

index 0b27f946fa56d2a01445613a7501ee3fc80c9a43..30ca025b2992ac16aef5695b985bac7b805e7d37 100644 (file)
@@ -120,7 +120,7 @@ extern "C" {
   (defined(__i386)  ||  defined(__sparc)  ||  defined(__x86_64)  || \
    defined(__aarch64__))  && \
   (!defined(__GLIBCXX__)  ||  !defined(NCBI_TCHECK))
-#  if defined(__x86_64)  ||  defined(__aarch64__)
+#  if (defined(__x86_64)  &&  !defined(_ILP32))  ||  defined(__aarch64__)
 #    define NCBI_COUNTER_64_BIT
 #  endif
 #  ifdef NCBI_COUNTER_64_BIT