Open Broadcaster Software
Free, open source software for live streaming and recording
sse-intrin.h
Go to the documentation of this file.
1
/******************************************************************************
2
Copyright (C) 2019 by Peter Geis <pgwipeout@gmail.com>
3
4
This program is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program. If not, see <http://www.gnu.org/licenses/>.
16
******************************************************************************/
17
18
#pragma once
19
20
#if NEEDS_SIMDE
21
22
#include "
simde/sse2.h
"
23
24
#define __m128 simde__m128
25
#define _mm_setzero_ps simde_mm_setzero_ps
26
#define _mm_set_ps simde_mm_set_ps
27
#define _mm_add_ps simde_mm_add_ps
28
#define _mm_sub_ps simde_mm_sub_ps
29
#define _mm_mul_ps simde_mm_mul_ps
30
#define _mm_div_ps simde_mm_div_ps
31
#define _mm_set1_ps simde_mm_set1_ps
32
#define _mm_movehl_ps simde_mm_movehl_ps
33
#define _mm_shuffle_ps simde_mm_shuffle_ps
34
#define _mm_min_ps simde_mm_min_ps
35
#define _mm_max_ps simde_mm_max_ps
36
#define _mm_movelh_ps simde_mm_movelh_ps
37
#define _mm_unpacklo_ps simde_mm_unpacklo_ps
38
#define _mm_unpackhi_ps simde_mm_unpackhi_ps
39
#define _mm_load_ps simde_mm_load_ps
40
#define _mm_andnot_ps simde_mm_andnot_ps
41
#define _mm_storeu_ps simde_mm_storeu_ps
42
#define _mm_loadu_ps simde_mm_loadu_ps
43
44
#define __m128i simde__m128i
45
#define _mm_set1_epi32 simde_mm_set1_epi32
46
#define _mm_set1_epi16 simde_mm_set1_epi16
47
#define _mm_load_si128 simde_mm_load_si128
48
#define _mm_packs_epi32 simde_mm_packs_epi32
49
#define _mm_srli_si128 simde_mm_srli_si128
50
#define _mm_and_si128 simde_mm_and_si128
51
#define _mm_packus_epi16 simde_mm_packus_epi16
52
#define _mm_add_epi64 simde_mm_add_epi64
53
#define _mm_shuffle_epi32 simde_mm_shuffle_epi32
54
#define _mm_srai_epi16 simde_mm_srai_epi16
55
#define _mm_shufflelo_epi16 simde_mm_shufflelo_epi16
56
#define _mm_storeu_si128 simde_mm_storeu_si128
57
58
#define _MM_SHUFFLE SIMDE_MM_SHUFFLE
59
#define _MM_TRANSPOSE4_PS SIMDE_MM_TRANSPOSE4_PS
60
61
#else
62
63
#include <xmmintrin.h>
64
#include <emmintrin.h>
65
66
#endif
sse2.h
libobs
util
sse-intrin.h
Generated on Sat Sep 26 2020 00:00:00 for Open Broadcaster Software by
1.8.20