diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-02-14 16:20:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-02-17 18:26:24 +0300 |
commit | 859118d8f6ff022a16acbc6435488883424bad25 (patch) | |
tree | e0f708929a884070f7c3758f7fb58527cbdfd555 /source/blender/blenlib/BLI_simd.h | |
parent | ac680c569e1b979f20c2e81dbd4f232085141aad (diff) |
BLI: add BLI_simd.h header to wrap SSE includes
In preparation of adding Neon support.
Ref D8237, T78710
Diffstat (limited to 'source/blender/blenlib/BLI_simd.h')
-rw-r--r-- | source/blender/blenlib/BLI_simd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_simd.h b/source/blender/blenlib/BLI_simd.h new file mode 100644 index 00000000000..1518b6c1de2 --- /dev/null +++ b/source/blender/blenlib/BLI_simd.h @@ -0,0 +1,28 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#pragma once + +/** \file + * \ingroup bli + * + * SIMD instruction support. + */ + +#if defined(__SSE2__) +# include <emmintrin.h> +# define BLI_HAVE_SSE2 +#endif |