ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dsps_dotprod_platform.h
Go to the documentation of this file.
1#ifndef _dsps_dotprod_platform_H_
2#define _dsps_dotprod_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 dotprod_f32_ae32_enabled 1
14#define dotprode_f32_ae32_enabled 1
15
16#endif //
17
18#if ((XCHAL_HAVE_LOOPS == 1) && (XCHAL_HAVE_MAC16 == 1))
19
20#define dsps_dotprod_s16_ae32_enabled 1
21
22#endif //
23#endif // __XTENSA__
24
25
26#if CONFIG_IDF_TARGET_ESP32S3
27#define dsps_dotprod_s16_aes3_enabled 1
28#define dsps_dotprod_f32_aes3_enabled 1
29#endif
30
31#if CONFIG_IDF_TARGET_ESP32P4
32#ifdef CONFIG_DSP_OPTIMIZED
33#define dsps_dotprod_s16_arp4_enabled 1
34#define dsps_dotprod_f32_arp4_enabled 1
35#else
36#define dsps_dotprod_s16_arp4_enabled 0
37#define dsps_dotprod_f32_arp4_enabled 0
38#endif // CONFIG_DSP_OPTIMIZED
39#endif
40
41
42#endif // _dsps_dotprod_platform_H_