DSPLIB User Guide
TI_platforms.h
Go to the documentation of this file.
1 #ifndef TI_PLATFORMS_H__
2 #define TI_PLATFORMS_H__
3 
4 #ifdef _HOST_BUILD
5 #if defined(__C7100__) || defined(__C7120__) || defined(__C7502__) || defined(__C7504__) || defined(__C7508__) || \
6  defined(__C7524__)
7 #include <c7x.h>
8 #endif
9 #include <assert.h>
10 #define restrict
11 #define _nassert assert
12 #define __int40_t long long
13 #ifdef _MSC_VER /* If using MS Visual Studio Compiler */
14 #define inline __inline
15 #define memalign(x, y) _aligned_malloc(y, x)
16 #if !defined(__cplusplus)
17 #if (_MSC_VER < 1800) /* Before MS Visual Studio 2013 (v12), C99 was not supported */
18 typedef unsigned int _Bool;
19 #define bool _Bool
20 #define true 1
21 #define false 0
22 #define round(x) ((x) + 0.5)
23 #else
24 #include <stdbool.h>
25 #endif
26 #endif
27 #else
28 #include <stdbool.h>
29 #endif
30 
31 #else /* not _HOST_BUILD */
32 
33 #if defined(__C7100__) || defined(__C7120__) || defined(__C7502__) || defined(__C7504__) || defined(__C7508__) || \
34  defined(__C7524__)
35 #include <c7x.h>
36 // #include <c7x_strm.h>
37 // #include <c7x_luthist.h>
38 /* #ifndef CORE_DSP /\* defined when BAM_PLUGIN=yes *\/ */
39 /* #include <vcop/vcop.h> */
40 /* #endif */
41 #if defined(C6X_MIGRATION)
42 #include <c6x_migration.h>
43 #endif
44 #else
45 #include <c6x.h>
46 #endif
47 #include <stdbool.h>
48 
49 #endif /* _HOST_BUILD */
50 
51 #endif /* ! TI_PLATFORMS_H__ */