ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dspm_mult_platform.h
Go to the documentation of this file.
1#ifndef _dspm_mult_platform_H_
2#define _dspm_mult_platform_H_
3
4#include "sdkconfig.h"
5
6#ifdef __XTENSA__
7#include <xtensa/config/core-isa.h>
8#include <xtensa/config/core-matmap.h>
9
10
11#if ((XCHAL_HAVE_FP == 1) && (XCHAL_HAVE_LOOPS == 1))
12
13#define dspm_mult_f32_ae32_enabled 1
14#define dspm_mult_3x3x1_f32_ae32_enabled 1
15#define dspm_mult_3x3x3_f32_ae32_enabled 1
16#define dspm_mult_4x4x1_f32_ae32_enabled 1
17#define dspm_mult_4x4x4_f32_ae32_enabled 1
18
19#endif
20
21#if ((XCHAL_HAVE_LOOPS == 1) && (XCHAL_HAVE_MAC16 == 1))
22
23#define dspm_mult_s16_ae32_enabled 1
24
25#endif
26#endif // __XTENSA__
27
28#if CONFIG_IDF_TARGET_ESP32S3
29#define dspm_mult_f32_aes3_enabled 1
30#define dspm_mult_s16_aes3_enabled 1
31#endif
32
33#if CONFIG_IDF_TARGET_ESP32P4
34#ifdef CONFIG_DSP_OPTIMIZED
35#define dspm_mult_f32_arp4_enabled 1
36#define dspm_mult_s16_arp4_enabled 1
37#else
38#define dspm_mult_f32_arp4_enabled 0
39#define dspm_mult_s16_arp4_enabled 0
40#endif // CONFIG_DSP_OPTIMIZED
41
42#endif
43
44#endif // _dspm_mult_platform_H_