summaryrefslogtreecommitdiff
path: root/math/py-scipy/patches/patch-scipy_spatial_ckdtree_src_ckdtree__decl.h
blob: aa45cdce4397ffc1504565a7ab6ea0427985a7bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-scipy_spatial_ckdtree_src_ckdtree__decl.h,v 1.2 2022/05/27 16:59:50 tnn Exp $

Many errors like this:
scipy/spatial/ckdtree/src/query_pairs.cxx:110:16: error: argument to '__builtin_prefetch' must be a constant integer

--- scipy/spatial/ckdtree/src/ckdtree_decl.h.orig	2022-04-29 21:14:38.041529700 +0000
+++ scipy/spatial/ckdtree/src/ckdtree_decl.h
@@ -10,7 +10,11 @@
 #include <numpy/npy_common.h>
 #define CKDTREE_LIKELY(x) NPY_LIKELY(x)
 #define CKDTREE_UNLIKELY(x)  NPY_UNLIKELY(x)
+#if 0
 #define CKDTREE_PREFETCH(x, rw, loc)  NPY_PREFETCH(x, rw, loc)
+#else
+#define CKDTREE_PREFETCH(x, rw, loc)
+#endif
 
 #define ckdtree_intp_t npy_intp
 #define ckdtree_isinf(x)   sc_isinf(x)