aboutsummaryrefslogtreecommitdiffstats
blob: c0a25afec5a084777ef9d9ae9cbbc32c93d683f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* 
 *  Copyright (c) 2011 Texas Instruments and others.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 * 
 *  Contributors:
 *      Texas Instruments - initial implementation
 * 
 * 
 */
/*
 *  ======== google/targets/std.h ========
 *
 */

#ifndef google_targets_STD_
#define google_targets_STD_

/* include target-specific "portable" macros */
#if defined(xdc_target_name__) & !defined(xdc_target_macros_include__)
#include xdc__local_include(xdc_target_name__)
#endif

/*
 * xdc__LONGLONG__ indicates if compiler supports 'long long' type
 * xdc__BITS<n> __ indicates if compiler supports 'uint<n>_t' type
 */
#define xdc__LONGLONG__
#define xdc__BITS8__
#define xdc__BITS16__
#define xdc__BITS32__
#define xdc__BITS64__
#define xdc__INT64__

/*
 *  ======== [U]Int<n> ========
 */
typedef signed char         xdc_Int8;
typedef unsigned char       xdc_UInt8;
typedef short               xdc_Int16;
typedef unsigned short      xdc_UInt16;
typedef long                xdc_Int32;
typedef unsigned long       xdc_UInt32;

__extension__ typedef long long           xdc_Int64;
__extension__ typedef unsigned long long  xdc_UInt64;

/*
 *  ======== Bits<n> ========
 */
typedef unsigned char       xdc_Bits8;
typedef unsigned short      xdc_Bits16;
typedef unsigned long       xdc_Bits32;
__extension__ typedef unsigned long long  xdc_Bits64;

/*
 *  ======== [IU]Arg ========
 */
typedef long            xdc_IArg;
typedef unsigned long   xdc_UArg;

#define xdc__ARG__
typedef xdc_IArg xdc_Arg;       /* deprecated, but compatible with BIOS 5.x */

/*
 *  ======== xdc__META ========
 */
#define xdc__META(n,s) __attribute__ ((section ("xdc.meta"))) const char (n)[] = {s}

#endif /* google_targets_STD_ */

/*
 *  @(#) google.targets; 1, 0, 0,139; 12-19-2013 15:12:09; /db/ztree/library/trees/xdctargets/xdctargets-g41x/src/ xlibrary

 */