add-mips64-support
authorAron Xu <aron@debian.org>
Mon, 6 Aug 2018 08:56:14 +0000 (09:56 +0100)
committerJean Baptiste Favre <debian@jbfavre.org>
Mon, 6 Aug 2018 08:56:14 +0000 (09:56 +0100)
Gbp-Pq: Name 0002-add-mips64-support.patch

lib/ts/ink_queue.h

index 76cf33160ec5f3b19ac642ffc04a0671bca11988..ee3af185f1cdcdd656a45e889647aebd492a0608 100644 (file)
@@ -134,7 +134,7 @@ typedef union {
 #define SET_FREELIST_POINTER_VERSION(_x, _p, _v) \
   (_x).s.pointer = _p;                           \
   (_x).s.version = _v
-#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__)
+#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(__mips64)
 #define FREELIST_POINTER(_x) \
   ((void *)(((((intptr_t)(_x).data) << 16) >> 16) | (((~((((intptr_t)(_x).data) << 16 >> 63) - 1)) >> 48) << 48))) // sign extend
 #define FREELIST_VERSION(_x) (((intptr_t)(_x).data) >> 48)