working on code
[simplev-cpp.git] / tests / test_sub / test.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 // See Notices.txt for copyright information
3
4 #include <cstddef>
5 #include <cstdint>
6
7 #include "simplev_cpp.h"
8
9 using u8x4 = sv::Vec<std::uint8_t, 1, 4>;
10 using u16x4 = sv::Vec<std::uint16_t, 1, 4>;
11
12 u8x4 test_sub_1(u8x4 a, u8x4 b)
13 {
14 return sv::sub(a, b);
15 }
16
17 u16x4 test_sub_2(u16x4 a, u16x4 b)
18 {
19 return sv::sub(a, b);
20 }
21
22 u16x4 test_sub_3(u16x4 a, u16x4 b, u16x4 c)
23 {
24 return sv::sub(a, sv::sub(b, c));
25 }