Argon 0.1.0
Loading...
Searching...
No Matches
argon_for.hpp
1#pragma once
2#include <type_traits>
3#include "argon/features.h"
5#include "arm_simd/helpers/concepts.hpp"
6#include "arm_simd/helpers/scalar.hpp"
7
8#ifdef __ARM_FEATURE_MVE
9#define simd mve
10#else
11#define simd neon
12#endif
13
14template <typename T>
15class ArgonHalf;
16
17template <typename T>
19class Argon;
20
21namespace argon::helpers {
22
26template <typename T>
27struct ArgonFor;
28
30template <simd::is_quadword T>
31struct ArgonFor<T> {
33};
34
35#ifndef ARGON_PLATFORM_MVE
36template <simd::is_doubleword T>
37struct ArgonFor<T> {
39};
40#endif
42
45template <typename T>
47} // namespace argon::helpers
48#undef simd
Definition argon_half.hpp:11
Definition argon_full.hpp:44
A scalar type a vector lane can hold: an arithmetic type, or float16_t where half-float vectors exist...
Definition lane_scalar.hpp:31
Header file for SIMD features and platform detection.
Concepts for the scalar types a vector lane can hold.
Contains helper templates and concepts for type manipulation and compile-time utilities.
Definition argon.hpp:156
typename ArgonFor< std::remove_cv_t< T > >::type ArgonFor_t
Helper alias to get the Argon type for a given vector type.
Definition argon_for.hpp:46
Helper template to get the Argon type for a given vector type.
Definition argon_for.hpp:27