arm_const_structs_f16.c 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* ----------------------------------------------------------------------
  2. * Project: CMSIS DSP Library
  3. * Title: arm_const_structs_f16.c
  4. * Description: Constant structs that are initialized for user convenience.
  5. * For example, some can be given as arguments to the arm_cfft_f32() or arm_rfft_f32() functions.
  6. *
  7. * $Date: 23 April 2021
  8. * $Revision: V1.9.0
  9. *
  10. * Target Processor: Cortex-M and Cortex-A cores
  11. * -------------------------------------------------------------------- */
  12. /*
  13. * Copyright (C) 2010-2021 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. #include "arm_math_types_f16.h"
  30. #if defined(ARM_FLOAT16_SUPPORTED)
  31. #include "arm_const_structs_f16.h"
  32. /* Floating-point structs */
  33. #if !defined(ARM_MATH_MVE_FLOAT16) || defined(ARM_MATH_AUTOVECTORIZE)
  34. /*
  35. Those structures cannot be used to initialize the MVE version of the FFT F32 instances.
  36. So they are not compiled when MVE is defined.
  37. For the MVE version, the new arm_cfft_init_f16 must be used.
  38. */
  39. #if !defined(__CC_ARM)
  40. const arm_cfft_instance_f16 arm_cfft_sR_f16_len16 = {
  41. 16, twiddleCoefF16_16, armBitRevIndexTable_fixed_16, ARMBITREVINDEXTABLE_FIXED_16_TABLE_LENGTH
  42. };
  43. const arm_cfft_instance_f16 arm_cfft_sR_f16_len32 = {
  44. 32, twiddleCoefF16_32, armBitRevIndexTable_fixed_32, ARMBITREVINDEXTABLE_FIXED_32_TABLE_LENGTH
  45. };
  46. const arm_cfft_instance_f16 arm_cfft_sR_f16_len64 = {
  47. 64, twiddleCoefF16_64, armBitRevIndexTable_fixed_64, ARMBITREVINDEXTABLE_FIXED_64_TABLE_LENGTH
  48. };
  49. const arm_cfft_instance_f16 arm_cfft_sR_f16_len128 = {
  50. 128, twiddleCoefF16_128, armBitRevIndexTable_fixed_128, ARMBITREVINDEXTABLE_FIXED_128_TABLE_LENGTH
  51. };
  52. const arm_cfft_instance_f16 arm_cfft_sR_f16_len256 = {
  53. 256, twiddleCoefF16_256, armBitRevIndexTable_fixed_256, ARMBITREVINDEXTABLE_FIXED_256_TABLE_LENGTH
  54. };
  55. const arm_cfft_instance_f16 arm_cfft_sR_f16_len512 = {
  56. 512, twiddleCoefF16_512, armBitRevIndexTable_fixed_512, ARMBITREVINDEXTABLE_FIXED_512_TABLE_LENGTH
  57. };
  58. const arm_cfft_instance_f16 arm_cfft_sR_f16_len1024 = {
  59. 1024, twiddleCoefF16_1024, armBitRevIndexTable_fixed_1024, ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH
  60. };
  61. const arm_cfft_instance_f16 arm_cfft_sR_f16_len2048 = {
  62. 2048, twiddleCoefF16_2048, armBitRevIndexTable_fixed_2048, ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH
  63. };
  64. const arm_cfft_instance_f16 arm_cfft_sR_f16_len4096 = {
  65. 4096, twiddleCoefF16_4096, armBitRevIndexTable_fixed_4096, ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH
  66. };
  67. #endif
  68. #endif
  69. #endif