diff options
| author | Sayed Adel <seiko@imavr.com> | 2020-06-18 09:51:30 +0200 |
|---|---|---|
| committer | Sayed Adel <seiko@imavr.com> | 2020-07-08 09:31:06 +0200 |
| commit | ca39904dc7226105ece19a54ef34c9b26086cca0 (patch) | |
| tree | 8d68c2af70947f26032690cf0b984f0491460547 /numpy/core/include | |
| parent | 8245b392a344a1ae0db6e569ab68b368ad8883c1 (diff) | |
| download | numpy-ca39904dc7226105ece19a54ef34c9b26086cca0.tar.gz | |
ENH: [1/4] implement the NumPy C SIMD vectorization interface
"NPYV" or universal intrinsics as NEP-38 define it, are types and functions
intended to simplify vectorization of code on different platforms.
This patch initialize NPYV for SIMD extensions SSE, AVX2, AVX512,
VSX and NEON on the top of C definitions that defined by the new
generated header '_cpu_dispatch.h' which included by 'cpu_dispatch.h'.
Diffstat (limited to 'numpy/core/include')
| -rw-r--r-- | numpy/core/include/numpy/npy_common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_common.h b/numpy/core/include/numpy/npy_common.h index 3cec0c6ff..9866666ee 100644 --- a/numpy/core/include/numpy/npy_common.h +++ b/numpy/core/include/numpy/npy_common.h @@ -141,6 +141,14 @@ #define NPY_INLINE #endif +#ifdef _MSC_VER + #define NPY_FINLINE static __forceinline +#elif defined(__GNUC__) + #define NPY_FINLINE static NPY_INLINE __attribute__((always_inline)) +#else + #define NPY_INLINE static +#endif + #ifdef HAVE___THREAD #define NPY_TLS __thread #else |
