riscv_common_tables_f16.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* ----------------------------------------------------------------------
  2. * Project: NMSIS DSP Library
  3. * Title: riscv_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: RISC-V Cores
  10. * -------------------------------------------------------------------- */
  11. /*
  12. * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
  13. * Copyright (c) 2019 Nuclei Limited. 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 RISCV_COMMON_TABLES_F16_H
  30. #define RISCV_COMMON_TABLES_F16_H
  31. #include "riscv_math_types_f16.h"
  32. #ifdef __cplusplus
  33. extern "C"
  34. {
  35. #endif
  36. /* F16 */
  37. #if defined(RISCV_FLOAT16_SUPPORTED)
  38. extern const float16_t twiddleCoefF16_16[32];
  39. extern const float16_t twiddleCoefF16_32[64];
  40. extern const float16_t twiddleCoefF16_64[128];
  41. extern const float16_t twiddleCoefF16_128[256];
  42. extern const float16_t twiddleCoefF16_256[512];
  43. extern const float16_t twiddleCoefF16_512[1024];
  44. extern const float16_t twiddleCoefF16_1024[2048];
  45. extern const float16_t twiddleCoefF16_2048[4096];
  46. extern const float16_t twiddleCoefF16_4096[8192];
  47. #define twiddleCoefF16 twiddleCoefF16_4096
  48. extern const float16_t twiddleCoefF16_rfft_32[32];
  49. extern const float16_t twiddleCoefF16_rfft_64[64];
  50. extern const float16_t twiddleCoefF16_rfft_128[128];
  51. extern const float16_t twiddleCoefF16_rfft_256[256];
  52. extern const float16_t twiddleCoefF16_rfft_512[512];
  53. extern const float16_t twiddleCoefF16_rfft_1024[1024];
  54. extern const float16_t twiddleCoefF16_rfft_2048[2048];
  55. extern const float16_t twiddleCoefF16_rfft_4096[4096];
  56. #endif /* #if defined(RISCV_FLOAT16_SUPPORTED) */
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif /* _RISCV_COMMON_TABLES_F16_H */