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