File: test-sse2.h

package info (click to toggle)
simde 0.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,284 kB
  • sloc: ansic: 410,189; sh: 174; makefile: 41; python: 26
file content (28 lines) | stat: -rw-r--r-- 2,326 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#if !defined(SIMDE_TEST_X86_TEST_SSE2_H)
#define SIMDE_TEST_X86_TEST_SSE2_H

#include "test-x86.h"
#include "test-sse.h"
#include "../../simde/x86/sse2.h"

SIMDE_TEST_X86_GENERATE_FLOAT_TYPE_FUNCS_(__m128d, 64, 2, simde_mm_storeu_pd)
SIMDE_TEST_X86_GENERATE_INT_TYPE_FUNCS_(__m128i, 8, 16, simde_mm_storeu_si128)
SIMDE_TEST_X86_GENERATE_INT_TYPE_FUNCS_(__m128i, 16, 8, simde_mm_storeu_si128)
SIMDE_TEST_X86_GENERATE_INT_TYPE_FUNCS_(__m128i, 32, 4, simde_mm_storeu_si128)
SIMDE_TEST_X86_GENERATE_INT_TYPE_FUNCS_(__m128i, 64, 2, simde_mm_storeu_si128)
SIMDE_TEST_X86_GENERATE_UINT_TYPE_FUNCS_(__m128i, 8, 16, simde_mm_storeu_si128)
SIMDE_TEST_X86_GENERATE_UINT_TYPE_FUNCS_(__m128i, 16, 8, simde_mm_storeu_si128)
SIMDE_TEST_X86_GENERATE_UINT_TYPE_FUNCS_(__m128i, 32, 4, simde_mm_storeu_si128)
SIMDE_TEST_X86_GENERATE_UINT_TYPE_FUNCS_(__m128i, 64, 2, simde_mm_storeu_si128)

#define simde_test_x86_assert_equal_f64x2(a, b, precision) do { if (simde_test_x86_assert_equal_f64x2_(a, b, 1e-##precision, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_i8x16(a, b) do { if (simde_test_x86_assert_equal_i8x16_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_i16x8(a, b) do { if (simde_test_x86_assert_equal_i16x8_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_i32x4(a, b) do { if (simde_test_x86_assert_equal_i32x4_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_i64x2(a, b) do { if (simde_test_x86_assert_equal_i64x2_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_u8x16(a, b) do { if (simde_test_x86_assert_equal_u8x16_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_u16x8(a, b) do { if (simde_test_x86_assert_equal_u16x8_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_u32x4(a, b) do { if (simde_test_x86_assert_equal_u32x4_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)
#define simde_test_x86_assert_equal_u64x2(a, b) do { if (simde_test_x86_assert_equal_u64x2_(a, b, __FILE__, __LINE__, #a, #b)) { return 1; } } while (0)

#endif /* !defined(SIMDE_TEST_X86_TEST_SSE2_H) */