Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

arm_mve_tables.h 9.9KB

pirms 3 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. /* ----------------------------------------------------------------------
  2. * Project: CMSIS DSP Library
  3. * Title: arm_mve_tables.h
  4. * Description: common tables like fft twiddle factors, Bitreverse, reciprocal etc
  5. * used for MVE implementation only
  6. *
  7. * $Date: 08. January 2020
  8. * $Revision: V1.7.0
  9. *
  10. * Target Processor: Cortex-M cores
  11. * -------------------------------------------------------------------- */
  12. /*
  13. * Copyright (C) 2010-2020 ARM Limited or its affiliates. All rights reserved.
  14. *
  15. * SPDX-License-Identifier: Apache-2.0
  16. *
  17. * Licensed under the Apache License, Version 2.0 (the License); you may
  18. * not use this file except in compliance with the License.
  19. * You may obtain a copy of the License at
  20. *
  21. * www.apache.org/licenses/LICENSE-2.0
  22. *
  23. * Unless required by applicable law or agreed to in writing, software
  24. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  25. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  26. * See the License for the specific language governing permissions and
  27. * limitations under the License.
  28. */
  29. #ifndef _ARM_MVE_TABLES_H
  30. #define _ARM_MVE_TABLES_H
  31. #include "arm_math.h"
  32. #if defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE)
  33. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES)
  34. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_F32_16) || defined(ARM_TABLE_TWIDDLECOEF_F32_32)
  35. extern uint32_t rearranged_twiddle_tab_stride1_arr_16_f32[2];
  36. extern uint32_t rearranged_twiddle_tab_stride2_arr_16_f32[2];
  37. extern uint32_t rearranged_twiddle_tab_stride3_arr_16_f32[2];
  38. extern float32_t rearranged_twiddle_stride1_16_f32[8];
  39. extern float32_t rearranged_twiddle_stride2_16_f32[8];
  40. extern float32_t rearranged_twiddle_stride3_16_f32[8];
  41. #endif
  42. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_F32_64) || defined(ARM_TABLE_TWIDDLECOEF_F32_128)
  43. extern uint32_t rearranged_twiddle_tab_stride1_arr_64_f32[3];
  44. extern uint32_t rearranged_twiddle_tab_stride2_arr_64_f32[3];
  45. extern uint32_t rearranged_twiddle_tab_stride3_arr_64_f32[3];
  46. extern float32_t rearranged_twiddle_stride1_64_f32[40];
  47. extern float32_t rearranged_twiddle_stride2_64_f32[40];
  48. extern float32_t rearranged_twiddle_stride3_64_f32[40];
  49. #endif
  50. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_F32_256) || defined(ARM_TABLE_TWIDDLECOEF_F32_512)
  51. extern uint32_t rearranged_twiddle_tab_stride1_arr_256_f32[4];
  52. extern uint32_t rearranged_twiddle_tab_stride2_arr_256_f32[4];
  53. extern uint32_t rearranged_twiddle_tab_stride3_arr_256_f32[4];
  54. extern float32_t rearranged_twiddle_stride1_256_f32[168];
  55. extern float32_t rearranged_twiddle_stride2_256_f32[168];
  56. extern float32_t rearranged_twiddle_stride3_256_f32[168];
  57. #endif
  58. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_F32_1024) || defined(ARM_TABLE_TWIDDLECOEF_F32_2048)
  59. extern uint32_t rearranged_twiddle_tab_stride1_arr_1024_f32[5];
  60. extern uint32_t rearranged_twiddle_tab_stride2_arr_1024_f32[5];
  61. extern uint32_t rearranged_twiddle_tab_stride3_arr_1024_f32[5];
  62. extern float32_t rearranged_twiddle_stride1_1024_f32[680];
  63. extern float32_t rearranged_twiddle_stride2_1024_f32[680];
  64. extern float32_t rearranged_twiddle_stride3_1024_f32[680];
  65. #endif
  66. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_F32_4096) || defined(ARM_TABLE_TWIDDLECOEF_F32_8192)
  67. extern uint32_t rearranged_twiddle_tab_stride1_arr_4096_f32[6];
  68. extern uint32_t rearranged_twiddle_tab_stride2_arr_4096_f32[6];
  69. extern uint32_t rearranged_twiddle_tab_stride3_arr_4096_f32[6];
  70. extern float32_t rearranged_twiddle_stride1_4096_f32[2728];
  71. extern float32_t rearranged_twiddle_stride2_4096_f32[2728];
  72. extern float32_t rearranged_twiddle_stride3_4096_f32[2728];
  73. #endif
  74. #endif /* !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES) */
  75. #endif /* defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) */
  76. #if defined(ARM_MATH_MVEI)
  77. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES)
  78. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q31_16) || defined(ARM_TABLE_TWIDDLECOEF_Q31_32)
  79. extern uint32_t rearranged_twiddle_tab_stride1_arr_16_q31[2];
  80. extern uint32_t rearranged_twiddle_tab_stride2_arr_16_q31[2];
  81. extern uint32_t rearranged_twiddle_tab_stride3_arr_16_q31[2];
  82. extern q31_t rearranged_twiddle_stride1_16_q31[8];
  83. extern q31_t rearranged_twiddle_stride2_16_q31[8];
  84. extern q31_t rearranged_twiddle_stride3_16_q31[8];
  85. #endif
  86. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q31_64) || defined(ARM_TABLE_TWIDDLECOEF_Q31_128)
  87. extern uint32_t rearranged_twiddle_tab_stride1_arr_64_q31[3];
  88. extern uint32_t rearranged_twiddle_tab_stride2_arr_64_q31[3];
  89. extern uint32_t rearranged_twiddle_tab_stride3_arr_64_q31[3];
  90. extern q31_t rearranged_twiddle_stride1_64_q31[40];
  91. extern q31_t rearranged_twiddle_stride2_64_q31[40];
  92. extern q31_t rearranged_twiddle_stride3_64_q31[40];
  93. #endif
  94. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q31_256) || defined(ARM_TABLE_TWIDDLECOEF_Q31_512)
  95. extern uint32_t rearranged_twiddle_tab_stride1_arr_256_q31[4];
  96. extern uint32_t rearranged_twiddle_tab_stride2_arr_256_q31[4];
  97. extern uint32_t rearranged_twiddle_tab_stride3_arr_256_q31[4];
  98. extern q31_t rearranged_twiddle_stride1_256_q31[168];
  99. extern q31_t rearranged_twiddle_stride2_256_q31[168];
  100. extern q31_t rearranged_twiddle_stride3_256_q31[168];
  101. #endif
  102. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q31_1024) || defined(ARM_TABLE_TWIDDLECOEF_Q31_2048)
  103. extern uint32_t rearranged_twiddle_tab_stride1_arr_1024_q31[5];
  104. extern uint32_t rearranged_twiddle_tab_stride2_arr_1024_q31[5];
  105. extern uint32_t rearranged_twiddle_tab_stride3_arr_1024_q31[5];
  106. extern q31_t rearranged_twiddle_stride1_1024_q31[680];
  107. extern q31_t rearranged_twiddle_stride2_1024_q31[680];
  108. extern q31_t rearranged_twiddle_stride3_1024_q31[680];
  109. #endif
  110. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q31_4096) || defined(ARM_TABLE_TWIDDLECOEF_Q31_8192)
  111. extern uint32_t rearranged_twiddle_tab_stride1_arr_4096_q31[6];
  112. extern uint32_t rearranged_twiddle_tab_stride2_arr_4096_q31[6];
  113. extern uint32_t rearranged_twiddle_tab_stride3_arr_4096_q31[6];
  114. extern q31_t rearranged_twiddle_stride1_4096_q31[2728];
  115. extern q31_t rearranged_twiddle_stride2_4096_q31[2728];
  116. extern q31_t rearranged_twiddle_stride3_4096_q31[2728];
  117. #endif
  118. #endif /* !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES) */
  119. #endif /* defined(ARM_MATH_MVEI) */
  120. #if defined(ARM_MATH_MVEI)
  121. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES)
  122. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q15_16) || defined(ARM_TABLE_TWIDDLECOEF_Q15_32)
  123. extern uint32_t rearranged_twiddle_tab_stride1_arr_16_q15[2];
  124. extern uint32_t rearranged_twiddle_tab_stride2_arr_16_q15[2];
  125. extern uint32_t rearranged_twiddle_tab_stride3_arr_16_q15[2];
  126. extern q15_t rearranged_twiddle_stride1_16_q15[8];
  127. extern q15_t rearranged_twiddle_stride2_16_q15[8];
  128. extern q15_t rearranged_twiddle_stride3_16_q15[8];
  129. #endif
  130. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q15_64) || defined(ARM_TABLE_TWIDDLECOEF_Q15_128)
  131. extern uint32_t rearranged_twiddle_tab_stride1_arr_64_q15[3];
  132. extern uint32_t rearranged_twiddle_tab_stride2_arr_64_q15[3];
  133. extern uint32_t rearranged_twiddle_tab_stride3_arr_64_q15[3];
  134. extern q15_t rearranged_twiddle_stride1_64_q15[40];
  135. extern q15_t rearranged_twiddle_stride2_64_q15[40];
  136. extern q15_t rearranged_twiddle_stride3_64_q15[40];
  137. #endif
  138. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q15_256) || defined(ARM_TABLE_TWIDDLECOEF_Q15_512)
  139. extern uint32_t rearranged_twiddle_tab_stride1_arr_256_q15[4];
  140. extern uint32_t rearranged_twiddle_tab_stride2_arr_256_q15[4];
  141. extern uint32_t rearranged_twiddle_tab_stride3_arr_256_q15[4];
  142. extern q15_t rearranged_twiddle_stride1_256_q15[168];
  143. extern q15_t rearranged_twiddle_stride2_256_q15[168];
  144. extern q15_t rearranged_twiddle_stride3_256_q15[168];
  145. #endif
  146. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q15_1024) || defined(ARM_TABLE_TWIDDLECOEF_Q15_2048)
  147. extern uint32_t rearranged_twiddle_tab_stride1_arr_1024_q15[5];
  148. extern uint32_t rearranged_twiddle_tab_stride2_arr_1024_q15[5];
  149. extern uint32_t rearranged_twiddle_tab_stride3_arr_1024_q15[5];
  150. extern q15_t rearranged_twiddle_stride1_1024_q15[680];
  151. extern q15_t rearranged_twiddle_stride2_1024_q15[680];
  152. extern q15_t rearranged_twiddle_stride3_1024_q15[680];
  153. #endif
  154. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_ALL_FFT_TABLES) || defined(ARM_TABLE_TWIDDLECOEF_Q15_4096) || defined(ARM_TABLE_TWIDDLECOEF_Q15_8192)
  155. extern uint32_t rearranged_twiddle_tab_stride1_arr_4096_q15[6];
  156. extern uint32_t rearranged_twiddle_tab_stride2_arr_4096_q15[6];
  157. extern uint32_t rearranged_twiddle_tab_stride3_arr_4096_q15[6];
  158. extern q15_t rearranged_twiddle_stride1_4096_q15[2728];
  159. extern q15_t rearranged_twiddle_stride2_4096_q15[2728];
  160. extern q15_t rearranged_twiddle_stride3_4096_q15[2728];
  161. #endif
  162. #endif /* !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES) */
  163. #endif /* defined(ARM_MATH_MVEI) */
  164. #if defined(ARM_MATH_MVEI)
  165. #if !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES)
  166. #endif /* !defined(ARM_DSP_CONFIG_TABLES) || defined(ARM_FFT_ALLOW_TABLES) */
  167. #endif /* defined(ARM_MATH_MVEI) */
  168. #endif /*_ARM_MVE_TABLES_H*/