arm_common_tables_f16.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* ----------------------------------------------------------------------
  2. * Project: CMSIS DSP Library
  3. * Title: arm_common_tables_f16.h
  4. * Description: Extern declaration for common tables
  5. *
  6. * @version V1.10.0
  7. * @date 08 July 2021
  8. *
  9. * Target Processor: Cortex-M and Cortex-A cores
  10. * -------------------------------------------------------------------- */
  11. /*
  12. * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
  13. *
  14. * SPDX-License-Identifier: Apache-2.0
  15. *
  16. * Licensed under the Apache License, Version 2.0 (the License); you may
  17. * not use this file except in compliance with the License.
  18. * You may obtain a copy of the License at
  19. *
  20. * www.apache.org/licenses/LICENSE-2.0
  21. *
  22. * Unless required by applicable law or agreed to in writing, software
  23. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  24. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  25. * See the License for the specific language governing permissions and
  26. * limitations under the License.
  27. */
  28. #ifndef _ARM_COMMON_TABLES_F16_H
  29. #define _ARM_COMMON_TABLES_F16_H
  30. #include "arm_math_types_f16.h"
  31. #ifdef __cplusplus
  32. extern "C"
  33. {
  34. #endif
  35. /* F16 */
  36. #if !defined(__CC_ARM) && defined(ARM_FLOAT16_SUPPORTED)
  37. extern const float16_t twiddleCoefF16_16[32];
  38. extern const float16_t twiddleCoefF16_32[64];
  39. extern const float16_t twiddleCoefF16_64[128];
  40. extern const float16_t twiddleCoefF16_128[256];
  41. extern const float16_t twiddleCoefF16_256[512];
  42. extern const float16_t twiddleCoefF16_512[1024];
  43. extern const float16_t twiddleCoefF16_1024[2048];
  44. extern const float16_t twiddleCoefF16_2048[4096];
  45. extern const float16_t twiddleCoefF16_4096[8192];
  46. #define twiddleCoefF16 twiddleCoefF16_4096
  47. extern const float16_t twiddleCoefF16_rfft_32[32];
  48. extern const float16_t twiddleCoefF16_rfft_64[64];
  49. extern const float16_t twiddleCoefF16_rfft_128[128];
  50. extern const float16_t twiddleCoefF16_rfft_256[256];
  51. extern const float16_t twiddleCoefF16_rfft_512[512];
  52. extern const float16_t twiddleCoefF16_rfft_1024[1024];
  53. extern const float16_t twiddleCoefF16_rfft_2048[2048];
  54. extern const float16_t twiddleCoefF16_rfft_4096[4096];
  55. #endif /* ARMAC5 */
  56. #if !defined(__CC_ARM) && defined(ARM_FLOAT16_SUPPORTED)
  57. #if (defined(ARM_MATH_MVEF) || defined(ARM_MATH_HELIUM)) && !defined(ARM_MATH_AUTOVECTORIZE)
  58. extern const float16_t exp_tab_f16[8];
  59. extern const float16_t __logf_lut_f16[8];
  60. #endif
  61. #endif
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif /* _ARM_COMMON_TABLES_F16_H */