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