| /cmsis-dsp-latest/dsppp/Include/dsppp/num_features/ |
| D | group.hpp | 20 struct number_traits<std::tuple<E...>> 29 typedef std::tuple<typename number_traits<E>::accumulator...> accumulator; 32 typedef std::tuple<typename number_traits<E>::compute_type...> compute_type; 39 static std::tuple<typename number_traits<E>::accumulator...> one() in one() 41 return(std::make_tuple(vector_traits<E>::one()...)); in one() 65 struct vector_traits<std::tuple<E...>,arch> { 68 using RefScalar = typename std::tuple_element<0,std::tuple<E...>>::type; 72 typedef std::tuple<typename vector_traits<E,arch>::temp_accumulator...> temp_accumulator; 75 typedef std::tuple<typename vector_traits<E,arch>::vector...> vector; 78 typedef std::tuple<typename vector_traits<E,arch>::predicate_t...> predicate_t; [all …]
|
| /cmsis-dsp-latest/dsppp/Include/dsppp/ |
| D | unroll.hpp | 27 using ScalarResult = std::tuple<typename traits<std::remove_reference_t<E>>::Scalar...>; 28 using TypeOfElement = typename std::tuple_element<0,ScalarResult>::type; 38 constexpr vector_length_t length() const noexcept {return std::get<0>(vals).length();}; in length() 40 template<std::size_t... Ns> 41 constexpr ScalarResult val_impl(const int i, const std::index_sequence<Ns...>) const noexcept in val_impl() 43 return std::tuple(std::get<Ns>(vals)[i]...); in val_impl() 47 return val_impl(i,std::make_index_sequence<sizeof...(E)>()); in operator []() 51 return val_impl(i,std::make_index_sequence<sizeof...(E)>()); in operator []() 56 …using Vector = std::tuple<typename vector_traits<typename traits<std::remove_reference_t<E>>::Scal… 58 template<std::size_t... Ns> [all …]
|
| D | memory_pool.hpp | 58 static char * malloc(const std::size_t bytes) in malloc() 61 return reinterpret_cast<char *>(std::malloc(bytes)); in malloc() 63 char *ret=reinterpret_cast<char *>(std::malloc(bytes)); in malloc() 66 std::cout << "out of memory for " << bytes << " bytes\r\n"; in malloc() 82 std::cout << "free null ptr \r\n"; in free() 85 std::free(block); in free() 98 inline void* aligned_malloc(std::size_t alignment, std::size_t size) in aligned_malloc() 100 void *ptr=std::malloc(size+alignment+sizeof(void*)); in aligned_malloc() 103 (reinterpret_cast<std::size_t>(ptr)+sizeof(void*)+alignment) & ~(alignment-1) in aligned_malloc() 120 std::free(*(static_cast<void**>(ptr) - 1)); in aligned_free() [all …]
|
| D | fusion.hpp | 75 using SameElementType=std::is_same<typename ElementType<A>::type,typename ElementType<B>::type>; 379 lhs_(std::move(other.lhs_)),rhs_(std::move(other.rhs_)),op_(std::move(other.op_)) in _Binary() 384 typename std::enable_if<IsVector<L>::value,bool>::type = true> 390 typename std::enable_if<!IsVector<L>::value && IsVector<R>::value,bool>::type = true> 396 typename std::enable_if<HasMatrixIndexing<L>::value,bool>::type = true> 402 …typename std::enable_if<!HasMatrixIndexing<L>::value && HasMatrixIndexing<R>::value,bool>::type = … 408 typename std::enable_if<HasMatrixIndexing<L>::value,bool>::type = true> 414 …typename std::enable_if<!HasMatrixIndexing<L>::value && HasMatrixIndexing<R>::value,bool>::type = … 422 typename std::enable_if< 430 typename std::enable_if<IsVector<L>::value && [all …]
|
| D | fusion_ops.hpp | 42 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 100 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 109 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 118 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 171 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 180 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 189 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 236 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 245 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> 254 typename std::enable_if<vector_traits<T>::has_predicate,bool>::type = true> [all …]
|
| D | algorithms.hpp | 45 typename std::enable_if< 65 typename std::enable_if<IsVector<VB>::value && 89 typename std::enable_if<IsVector<VB>::value && 128 typename std::enable_if<CompatibleStaticMatVecProduct<M,V>::value,bool>::type = true> 138 typename std::enable_if<CompatibleDynamicMatVecProduct<M,V>::value,bool>::type = true> 149 typename std::enable_if<CompatibleDynamicMatVecProduct<M,V>::value,bool>::type = true> 169 typename std::enable_if<CompatibleStaticMatMatProduct<MA,MB>::value && 184 typename std::enable_if<CompatibleStaticMatMatProduct<MA,MB>::value && 198 typename std::enable_if<CompatibleDynamicMatMatProduct<MA,MB>::value && 212 typename std::enable_if<CompatibleDynamicMatMatProduct<MA,MB>::value && [all …]
|
| /cmsis-dsp-latest/dsppp/Examples/ |
| D | matrix_op.cpp | 25 std::cout << "Matrix operation examples\r\n"; in main() 33 for(std::size_t i=0;i<ROWS*COLS;i++) in main() 38 for(std::size_t row=0; row<ROWS; row++) in main() 40 for(std::size_t col=0; col<COLS; col++) in main() 48 std::cout << "Result = " << std::endl << result ; in main() 54 std::cout << "Result = " << std::endl << result ; in main() 59 std::cout << "Result = " << std::endl << result ; in main() 63 std::cout << "Result = " << std::endl << result ; in main() 67 std::cout << "Result = " << std::endl << result ; in main() 72 std::cout << "Result = " << std::endl << result ; in main() [all …]
|
| D | vector_op.cpp | 25 std::cout << "Vector operation examples\r\n"; in main() 44 std::cout << "Result = " << d ; in main() 52 std::cout << "Result = " << d ; in main() 56 std::cout << "Result = " << d ; in main() 73 std::cout << "Result = " << dQ15 ; in main()
|
| /cmsis-dsp-latest/dsppp/ |
| D | allocator.cpp | 12 std::map<int, int> current_stats; 13 std::map<int, int> max_stats; 14 std::map<void*, std::size_t> current_dyn_stats; 18 void print_map(std::string comment) in print_map() 21 std::cout << comment << "\r\n"; in print_map() 23 std::size_t total_static=0; in print_map() 24 std::size_t total_dynamic=0; in print_map() 31 std::cout << "ALLOC_POOL(" << v.first << "," << v.second << "); \r\n"; in print_map() 41 std::cout << "POOL(" << v.first << "); \r\n"; in print_map() 45 std::cout << "\r\n"; in print_map() [all …]
|
| D | allocator.h | 71 static char* allocate ( std::size_t sz) noexcept{ 72 return(reinterpret_cast<char*>(std::malloc(sz))); 76 std::free(ptr); 81 extern std::map<int, int> current_stats; 82 extern std::map<int, int> max_stats; 83 extern std::map<void*, std::size_t> current_dyn_stats; 90 static char* allocate ( std::size_t sz) noexcept{ 96 void *ptr = std::malloc(sz); 108 return(reinterpret_cast<char*>(std::malloc(L))); 114 std::size_t sz = current_dyn_stats[ptr]; [all …]
|
| /cmsis-dsp-latest/dsppp/tests/ |
| D | common_tests.h | 19 std::cout << "Error = " << fabs(VAL-REF) << "\r\n"; \ 20 std::cout << "compared to " << (AE + RE * abs((REF))) << "\r\n"; 61 void init_array(Vector<T,L,A> &pDst,std::size_t nb) in init_array() 63 for(std::size_t i=0;i<nb;i++) in init_array() 72 void init_array(Vector<float16_t,L,A> &pDst,std::size_t nb) in init_array() 74 for(std::size_t i=0;i<nb;i++) in init_array() 83 void init_array(Vector_Base<T> &pDst,std::size_t nb) in init_array() 85 for(std::size_t i=0;i<nb;i++) in init_array() 101 typename std::enable_if<std::is_pointer<T>::value,bool>::type = true> 102 bool validate(const T a, const T b, std::size_t nb,float abser = ABS_ERROR, float reler = REL_ERROR) [all …]
|
| D | matrix_test.cpp | 264 void init_mat(Matrix<T,R,C,A> &pDst,std::size_t r,std::size_t c) in init_mat() 283 for(std::size_t i=0;i<r*c;i++) in init_mat() 381 typename std::enable_if<(NB>0),bool>::type = true> 392 typename std::enable_if<(NB<0),bool>::type = true> 403 typename std::enable_if<(NB<0),bool>::type = true> 413 std::cout << "----\r\n"; in testinv() 414 std::cout << R << " x " << C << "\r\n"; in testinv() 456 std::cout << "=====\r\n"; in testinv() 463 std::cout << "----\r\n"; in testadd() 464 std::cout << R << " x " << C << "\r\n"; in testadd() [all …]
|
| D | common_tests.cpp | 14 void init_array(Vector_Base<float16_t> &pDst,std::size_t nb) 16 for(std::size_t i=0;i<nb;i++) 26 std::size_t nb, in validate() 30 for(std::size_t i=0;i<nb;i++) in validate() 34 std::cout << "Error at :" << i << " ; res=" << a[i] << " ; ref=" << b[i] << "\r\n"; in validate()
|
| D | row_test.cpp | 24 std::cout << "----\r\n"; in test() 25 std::cout << R << " x " << C << "\r\n"; in test() 26 std::cout << "NBOUT = " << NBOUT << "\r\n"; in test() 62 std::cout << "=====\r\n"; in test() 69 std::cout << "----\r\n"; in swaptest() 70 std::cout << R << " x " << C << "\r\n"; in swaptest() 71 std::cout << "NBOUT = " << NBOUT << "\r\n"; in swaptest() 107 std::cout << "=====\r\n"; in swaptest() 155 if constexpr (std::is_same<T,float>::value) in all_row_test()
|
| /cmsis-dsp-latest/Testing/FrameworkInclude/ |
| D | Semihosting.h | 51 Semihosting(std::string path,std::string patternRootPath 52 ,std::string outputRootPath 53 ,std::string parameterRootPath); 82 virtual void DumpParams(std::vector<Testing::param_t>&); 107 std::string getPatternPath(Testing::PatternID_t id); 111 std::string getOutputPath(Testing::outputID_t id); 115 Testing::nbSamples_t GetFileSize(std::string &path); 128 std::string currentPath; 132 std::string testDir; 135 std::vector<std::string> *path; [all …]
|
| D | FPGA.h | 77 virtual void DumpParams(std::vector<Testing::param_t>&); 104 std::string getOutputPath(Testing::outputID_t id); 130 std::vector<unsigned long> *patternOffsets; 133 std::vector<Testing::nbSamples_t> *patternSizes; 136 std::vector<struct offsetOrGen> *parameterOffsets; 139 std::vector<Testing::nbSamples_t> *parameterSizes; 145 std::string testDir; 146 std::vector<std::string> *path; 147 std::string currentPath; 148 std::vector<std::string> *outputNames;
|
| /cmsis-dsp-latest/dsppp/Include/dsppp/Helium/ |
| D | half.hpp | 27 struct vector_traits<float16_t,arch,typename std::enable_if<std::is_base_of<Helium,arch>::value>::t… 398 typename std::enable_if<S==1,bool>::type = true> 405 typename std::enable_if<(S>1) && (S<=65535),bool>::type = true> 413 typename std::enable_if<(S>65535),bool>::type = true> 417 for(std::size_t i=0;i<8;i++) in vload1() 438 for(std::size_t i=0;i<8;i++) in vload1() 450 typename std::enable_if<S==1,bool>::type = true> 452 const std::size_t nb, in vload1_z() 460 typename std::enable_if<(S>1)&& (S<=65535),bool>::type = true> 462 const std::size_t nb, in vload1_z() [all …]
|
| D | q15.hpp | 34 typename std::enable_if<std::is_base_of<Helium,arch>::value>::type > 235 typename std::enable_if<S==1,bool>::type = true> 268 typename std::enable_if<(S>1) && (S<=9362),bool>::type = true> 278 typename std::enable_if<(S>9362),bool>::type = true> 282 for(std::size_t i=0;i<8;i++) in vload1() 303 for(std::size_t i=0;i<8;i++) in vload1() 313 typename std::enable_if<S==1,bool>::type = true> 314 inline int16x8_t vload1_z(const Q15 *p,std::size_t nb,mve_pred16_t p0) in vload1_z() 322 typename std::enable_if<(S>1) && (S<=9362),bool>::type = true> 323 inline int16x8_t vload1_z(const Q15 *p,std::size_t nb,mve_pred16_t p0) in vload1_z() [all …]
|
| D | q7.hpp | 30 typename std::enable_if<std::is_base_of<Helium,arch>::value>::type > 198 typename std::enable_if<S==1,bool>::type = true> 210 typename std::enable_if<(S>1) && (S<=17),bool>::type = true> 221 typename std::enable_if<(S>17),bool>::type = true> 225 for(std::size_t i=0;i<16;i++) in vload1() 246 for(std::size_t i=0;i<16;i++) in vload1() 256 typename std::enable_if<S==1,bool>::type = true> 257 inline int8x16_t vload1_z(const Q7 *p,std::size_t nb,mve_pred16_t p0) in vload1_z() 265 typename std::enable_if<(S>1) && (S<=17),bool>::type = true> 266 inline int8x16_t vload1_z(const Q7 *p,std::size_t nb,mve_pred16_t p0) in vload1_z() [all …]
|
| D | float.hpp | 39 typename std::enable_if<std::is_base_of<Helium,arch>::value>::type > 498 typename std::enable_if<S==1,bool>::type = true> 506 typename std::enable_if<(S>1),bool>::type = true> 545 typename std::enable_if<S==1,bool>::type = true> 546 inline float32x4_t vload1_z(const float32_t *p,const std::size_t nb,const mve_pred16_t p0) in vload1_z() 554 typename std::enable_if<(S>1),bool>::type = true> 555 inline float32x4_t vload1_z(const float32_t *p,const std::size_t nb,const mve_pred16_t p0) in vload1_z() 577 …inline float32x4_t vload1_z(const float32_t *p,const index_t stride,const std::size_t nb,const mve… in vload1_z() 649 static float32x4_t run(const float32_t *p,const std::size_t nb,const mve_pred16_t p0) in run() 674 static float32x4_t run(const float32_t *p,const std::size_t nb,const mve_pred16_t p0) in run() [all …]
|
| D | basic.hpp | 33 typename std::enable_if<has_vector_inst<DST>() && 63 typename std::enable_if<has_vector_inst<DST>() && 118 typename std::enable_if<has_vector_inst<DA>() && 150 typename std::enable_if<has_vector_inst<DA>() && 201 static std::ostream& operator<< (std::ostream& stream, const float32x4_t& other) in operator <<() 216 void printt(const TupType& _tup, std::index_sequence<I...>) in printt() 218 std::cout << "("; in printt() 219 (..., (std::cout << (I == 0? "" : ", ") << std::get<I>(_tup))); in printt() 220 std::cout << ")\n"; in printt() 231 void printt (const std::tuple<T...>& _tup) in printt() [all …]
|
| D | q31.hpp | 31 typename std::enable_if<std::is_base_of<Helium,arch>::value>::type > 198 typename std::enable_if<S==1,bool>::type = true> 205 typename std::enable_if<(S>1),bool>::type = true> 223 typename std::enable_if<S==1,bool>::type = true> 224 inline int32x4_t vload1_z(const Q31 *p,std::size_t nb,mve_pred16_t p0) in vload1_z() 232 typename std::enable_if<(S>1),bool>::type = true> 233 inline int32x4_t vload1_z(const Q31 *p,std::size_t nb,mve_pred16_t p0) in vload1_z() 244 inline int32x4_t vload1_z(const Q31 *p,index_t stride,std::size_t nb,mve_pred16_t p0) in vload1_z() 255 typename std::enable_if<S==1,bool>::type = true> 262 typename std::enable_if<(S>1) ,bool>::type = true> [all …]
|
| /cmsis-dsp-latest/Testing/FrameworkSource/ |
| D | Semihosting.cpp | 49 std::string path; 56 …Semihosting::Semihosting(std::string path,std::string patternRootPath,std::string outputRootPath,s… in Semihosting() 60 this->path=new std::vector<std::string>(); in Semihosting() 64 this->patternFilenames=new std::vector<std::string>(); in Semihosting() 65 this->outputNames=new std::vector<std::string>(); in Semihosting() 66 this->parameterNames=new std::vector<struct pathOrGen>(); in Semihosting() 72 …for (std::vector<struct pathOrGen>::iterator it = this->parameterNames->begin() ; it != this->para… in DeleteParams() 108 std::string tmpstr; in ReadPatternList() 133 std::string tmpstr; in ReadParameterList() 159 std::string tmp; in ReadParameterList() [all …]
|
| D | FPGA.cpp | 43 using namespace std; 63 this->path=new std::vector<std::string>(); in FPGA() 65 this->patternOffsets=new std::vector<unsigned long>(); in FPGA() 66 this->patternSizes=new std::vector<unsigned long>(); in FPGA() 68 this->parameterOffsets=new std::vector<struct offsetOrGen>(); in FPGA() 69 this->parameterSizes=new std::vector<unsigned long>(); in FPGA() 71 this->outputNames=new std::vector<std::string>(); in FPGA() 77 …for (std::vector<struct offsetOrGen>::iterator it = this->parameterOffsets->begin() ; it != this->… in DeleteParams() 144 std::string FPGA::getOutputPath(Testing::outputID_t id) in getOutputPath() 148 std::string tmp; in getOutputPath() [all …]
|
| /cmsis-dsp-latest/dsppp/Include/dsppp/Neon/ |
| D | float.hpp | 14 typename std::enable_if<std::is_base_of<Neon,arch>::value>::type> 51 typename std::enable_if<S==1,bool>::type = true> 58 typename std::enable_if<(S>1),bool>::type = true> 78 typename std::enable_if<S==1,bool>::type = true> 85 typename std::enable_if<(S>1),bool>::type = true>
|