comparison chipsetsw/layer1/gtt_include/ctm/ctm_typedefs.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 *******************************************************************************
3 *
4 * COPYRIGHT (C) 2000 BY ERICSSON EUROLAB DEUTSCHLAND GmbH
5 * 90411 NUERNBERG, GERMANY, Tel Int + 49 911 5217 100
6 *
7 * The program(s) may be used and/or copied only with the
8 * written permission from Ericsson or in accordance
9 * with the terms and conditions stipulated in the agreement or
10 * contract under which the program(s) have been supplied.
11 *
12 *******************************************************************************
13 *
14 * File : typedefs.h
15 * Author : EED/N/RV Peter Bloecher
16 * Tested Platforms : DEC Alpha (OSF 3.2, 4.0), SUN (SunOS 5.5.1), Linux,
17 * Win95/NT
18 * Description : Definition of platform independent data
19 * types and constants
20 *
21 * Revision history
22 *
23 * Rev Date Name Description
24 * -------------------------------------------------------------------
25 * pB1 1998-12-09 V.Springer added PC Linux, PC (MSDOS/Win95/NT) tests
26 * also for __BORLANDC__ and _MSC_VER
27 * compiler now
28 * A 1998-05-06 P. Bloecher first official release
29 * pA2 28-MAY-97 R.Schleifer corrected error at definitin of
30 * maxFloat and minFloat
31 * pA1 12-MAR-97 P.Bloecher initial version
32 *
33 *
34 * The following platform independent data types and corresponding
35 * preprocessor (#define) constants are defined:
36 *
37 * defined type meaning corresponding constants
38 * ----------------------------------------------------------
39 * Char character (none)
40 * BOOL boolean true, false
41 * Byte 8-bit signed minByte, maxByte
42 * UByte 8-bit unsigned minUByte, maxUByte
43 * Shortint 16-bit signed minShortint, maxShortint
44 * UShortint 16-bit unsigned minUShortint, maxUShortint
45 * Longint 32-bit signed minLongint, maxLongint
46 * ULongint 32-bit unsigned minULongint, maxULongint
47 * Float floating point minFloat, maxFloat
48 *
49 *
50 * The following compile switches are #defined:
51 *
52 * PLATFORM string indicating platform progam is compiled on
53 * possible values: "OSF", "PC", "SUN"
54 *
55 * OSF only defined if the current platform is an Alpha
56 * PC only defined if the current platform is a PC
57 * SUN only defined if the current platform is a Sun
58 *
59 * LSBFIRST is defined if the byte order on this platform is
60 * "least significant byte first" -> defined on DEC Alpha
61 * and PC, undefined on Sun
62 *
63 *******************************************************************************
64 */
65 #ifndef ctm_typedefs_h
66 #define ctm_typedefs_h
67
68 /*
69 *******************************************************************************
70 * INCLUDE FILES
71 *******************************************************************************
72 */
73 #include <float.h>
74 #include <limits.h>
75
76 /*
77 *******************************************************************************
78 * DEFINITION OF CONSTANTS
79 *******************************************************************************
80 */
81
82 /*
83 ********* define char type
84 */
85 typedef char Char; // word8
86
87 /*
88 ********* define floating point type & constants
89 */
90 /* use "#if 0" below if Float should be double;
91 use "#if 1" below if Float should be float
92 */
93 #if 0
94 typedef float Float;
95 #define maxFloat FLT_MAX
96 #define minFloat FLT_MIN
97 #else
98 typedef double Float;
99 #define maxFloat DBL_MAX
100 #define minFloat DBL_MIN
101 #endif
102
103 /*
104 ********* define complex type
105 */
106 typedef struct {
107 Float r; /* real part */
108 Float i; /* imaginary part */
109 } CPX;
110
111 /*
112 ********* define boolean type
113 */
114 //typedef int BOOL;
115 #define false 0
116 #define true 1
117
118
119 #endif