add-mips64-support
authorAron Xu <aron@debian.org>
Mon, 5 Nov 2018 09:13:03 +0000 (09:13 +0000)
committerJean Baptiste Favre <debian@jbfavre.org>
Mon, 5 Nov 2018 09:13:03 +0000 (09:13 +0000)
Gbp-Pq: Name 0002-add-mips64-support.patch

include/tscore/ink_queue.h

index 7f75ad9dfa977321f0f94d791053e5c973c249ef..6d242cd9f15ca0f0ab0e59dbcb8d5d18fa96bf62 100644 (file)
@@ -136,7 +136,7 @@ union head_p {
 #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)