riscv_const_structs.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* ----------------------------------------------------------------------
  2. * Project: NMSIS DSP Library
  3. * Title: riscv_const_structs.h
  4. * Description: Constant structs that are initialized for user convenience.
  5. * For example, some can be given as arguments to the riscv_cfft_f32() function.
  6. *
  7. * @version V1.10.0
  8. * @date 08 July 2021
  9. *
  10. * Target Processor: RISC-V Cores
  11. * -------------------------------------------------------------------- */
  12. /*
  13. * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
  14. * Copyright (c) 2019 Nuclei Limited. All rights reserved.
  15. *
  16. * SPDX-License-Identifier: Apache-2.0
  17. *
  18. * Licensed under the Apache License, Version 2.0 (the License); you may
  19. * not use this file except in compliance with the License.
  20. * You may obtain a copy of the License at
  21. *
  22. * www.apache.org/licenses/LICENSE-2.0
  23. *
  24. * Unless required by applicable law or agreed to in writing, software
  25. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  26. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  27. * See the License for the specific language governing permissions and
  28. * limitations under the License.
  29. */
  30. #ifndef RISCV_CONST_STRUCTS_H
  31. #define RISCV_CONST_STRUCTS_H
  32. #include "riscv_math_types.h"
  33. #include "riscv_common_tables.h"
  34. #include "dsp/transform_functions.h"
  35. #if defined (RISCV_FLOAT16_SUPPORTED)
  36. #include "riscv_const_structs_f16.h"
  37. #endif /* defined (RISCV_FLOAT16_SUPPORTED) */
  38. #ifdef __cplusplus
  39. extern "C"
  40. {
  41. #endif
  42. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len16;
  43. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len32;
  44. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len64;
  45. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len128;
  46. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len256;
  47. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len512;
  48. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len1024;
  49. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len2048;
  50. extern const riscv_cfft_instance_f64 riscv_cfft_sR_f64_len4096;
  51. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len16;
  52. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len32;
  53. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len64;
  54. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len128;
  55. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len256;
  56. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len512;
  57. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len1024;
  58. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len2048;
  59. extern const riscv_cfft_instance_f32 riscv_cfft_sR_f32_len4096;
  60. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len16;
  61. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len32;
  62. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len64;
  63. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len128;
  64. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len256;
  65. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len512;
  66. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len1024;
  67. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len2048;
  68. extern const riscv_cfft_instance_q31 riscv_cfft_sR_q31_len4096;
  69. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len16;
  70. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len32;
  71. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len64;
  72. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len128;
  73. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len256;
  74. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len512;
  75. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len1024;
  76. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len2048;
  77. extern const riscv_cfft_instance_q15 riscv_cfft_sR_q15_len4096;
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif