diff options
| author | Matti Picus <matti.picus@gmail.com> | 2020-07-10 13:50:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-10 13:50:34 +0300 |
| commit | 58da484abf6f466a9e8bf55c188cb5b501d31ceb (patch) | |
| tree | 67631e36868543fb1d2baa75c9f8a4358825351e /numpy/core/include | |
| parent | c43b2bfb15281e170cc5006829ebc559bd1915e3 (diff) | |
| parent | 18d0fe5c1b2c4a95e0eee73de9aa086b2d64cf88 (diff) | |
| download | numpy-58da484abf6f466a9e8bf55c188cb5b501d31ceb.tar.gz | |
Merge pull request #16397 from seiko2plus/implement_npyv
ENH: Implement the NumPy C SIMD vectorization interface
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..5706e0576 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_FINLINE static +#endif + #ifdef HAVE___THREAD #define NPY_TLS __thread #else |
