We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9de0ba commit d35c4d3Copy full SHA for d35c4d3
src/simd_basic.h
@@ -37,13 +37,27 @@ namespace quadiron {
37
namespace simd {
38
39
template <typename T>
40
-inline VecType Card(T q)
+inline VecType Card(T q);
41
+template <>
42
+inline VecType Card<uint16_t>(uint16_t q)
43
+{
44
+ return F3_U16;
45
+}
46
47
+inline VecType Card<uint32_t>(uint32_t q)
48
{
49
return (q == F3) ? F3_U32 : F4_U32;
50
}
51
52
-inline VecType CardMinusOne(T q)
53
+inline VecType CardMinusOne(T q);
54
55
+inline VecType CardMinusOne<uint16_t>(uint16_t q)
56
57
+ return F3_MINUS_ONE_U16;
58
59
60
+inline VecType CardMinusOne<uint32_t>(uint32_t q)
61
62
return (q == F3) ? F3_MINUS_ONE_U32 : F4_MINUS_ONE_U32;
63
0 commit comments