Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 130 lines (117 sloc) 3.588 kB
d3de1d9 Add at least minimal implementations for several
steve authored
1 #ifndef PLI_TYPES
2 #define PLI_TYPES
3 /*
4 * Copyright (c) 2003 Stephen Williams (steve@icarus.com)
5 *
6 * This source code is free software; you can redistribute it
7 * and/or modify it in source code form under the terms of the GNU
8 * General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
10 * any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 */
21 #ifdef HAVE_CVS_IDENT
1a8ffe2 More standard PLI_BYTE8.
steve authored
22 #ident "$Id: _pli_types.h.in,v 1.8 2007/06/05 21:32:30 steve Exp $"
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
23 #endif
24
7ef4576 Use configured TIME_FMT in vcd dump printf.
steve authored
25 # undef HAVE_INTTYPES_H
01d22e2 Put libraries in libdir64.
steve authored
26
7ef4576 Use configured TIME_FMT in vcd dump printf.
steve authored
27 #ifdef HAVE_INTTYPES_H
01d22e2 Put libraries in libdir64.
steve authored
28
29 /*
bc0ead2 Spelling fixes in comments.
steve authored
30 * If the host environment has the stdint.h header file,
01d22e2 Put libraries in libdir64.
steve authored
31 * then use that to size our PLI types.
32 */
7ef4576 Use configured TIME_FMT in vcd dump printf.
steve authored
33 #ifndef __STDC_FORMAT_MACROS
34 # define __STDC_FORMAT_MACROS
35 #endif
01d22e2 Put libraries in libdir64.
steve authored
36
7ef4576 Use configured TIME_FMT in vcd dump printf.
steve authored
37 # include <inttypes.h>
01d22e2 Put libraries in libdir64.
steve authored
38 typedef uint64_t PLI_UINT64;
39 typedef int64_t PLI_INT64;
40 typedef uint32_t PLI_UINT32;
41 typedef int32_t PLI_INT32;
42
43 typedef signed short PLI_INT16;
44 typedef unsigned short PLI_UINT16;
1a8ffe2 More standard PLI_BYTE8.
steve authored
45 typedef char PLI_BYTE8;
01d22e2 Put libraries in libdir64.
steve authored
46 typedef unsigned char PLI_UBYTE8;
47
5ff3bcc Add the PLU_UINT64_FMT string for formatting output.
steve authored
48 # define PLI_UINT64_FMT PRIu64
4236b8a Portably handle time format of VCD prints.
steve authored
49
01d22e2 Put libraries in libdir64.
steve authored
50 #else
51
52 /*
53 * If we do not have the c99 stdint.h header file, then use
bc0ead2 Spelling fixes in comments.
steve authored
54 * configure detection to guess the pli types ourselves.
01d22e2 Put libraries in libdir64.
steve authored
55 */
56
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
57 # define SIZEOF_UNSIGNED_LONG_LONG 8
58 # define SIZEOF_UNSIGNED_LONG 8
59 # define SIZEOF_UNSIGNED 4
60
61 #if SIZEOF_UNSIGNED >= 8
62 typedef unsigned PLI_UINT64;
63 typedef int PLI_INT64;
d10da21 Clean up manual definitions of PLI_UINT64_FMT.
steve authored
64 # define PLI_UINT64_FMT "u"
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
65 #else
66 # if SIZEOF_UNSIGNED_LONG >= 8
67 typedef unsigned long PLI_UINT64;
68 typedef long PLI_INT64;
d10da21 Clean up manual definitions of PLI_UINT64_FMT.
steve authored
69 # define PLI_UINT64_FMT "lu"
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
70 # else
71 # if SIZEOF_UNSIGNED_LONG_LONG > SIZEOF_UNSIGNED_LONG
72 typedef unsigned long long PLI_UINT64;
73 typedef long long PLI_INT64;
d10da21 Clean up manual definitions of PLI_UINT64_FMT.
steve authored
74 # define PLI_UINT64_FMT "llu"
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
75 # else
76 typedef unsigned long PLI_UINT64;
77 typedef long PLI_INT64;
d10da21 Clean up manual definitions of PLI_UINT64_FMT.
steve authored
78 # define PLI_UINT64_FMT "lu"
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
79 # endif
80 # endif
d3de1d9 Add at least minimal implementations for several
steve authored
81 #endif
82
83 typedef signed int PLI_INT32;
84 typedef unsigned int PLI_UINT32;
85 typedef signed short PLI_INT16;
b82a2d4 Typo type name.
steve authored
86 typedef unsigned short PLI_UINT16;
1a8ffe2 More standard PLI_BYTE8.
steve authored
87 typedef char PLI_BYTE8;
d3de1d9 Add at least minimal implementations for several
steve authored
88 typedef unsigned char PLI_UBYTE8;
01d22e2 Put libraries in libdir64.
steve authored
89 #endif
d3de1d9 Add at least minimal implementations for several
steve authored
90
91 /*
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
92 * $Log: _pli_types.h.in,v $
1a8ffe2 More standard PLI_BYTE8.
steve authored
93 * Revision 1.8 2007/06/05 21:32:30 steve
94 * More standard PLI_BYTE8.
95 *
d10da21 Clean up manual definitions of PLI_UINT64_FMT.
steve authored
96 * Revision 1.7 2003/11/12 02:38:44 steve
97 * Clean up manual definitions of PLI_UINT64_FMT.
98 *
bc0ead2 Spelling fixes in comments.
steve authored
99 * Revision 1.6 2003/11/08 20:06:21 steve
100 * Spelling fixes in comments.
101 *
5ff3bcc Add the PLU_UINT64_FMT string for formatting output.
steve authored
102 * Revision 1.5 2003/10/29 03:28:27 steve
103 * Add the PLU_UINT64_FMT string for formatting output.
104 *
4236b8a Portably handle time format of VCD prints.
steve authored
105 * Revision 1.4 2003/10/29 03:23:12 steve
106 * Portably handle time format of VCD prints.
107 *
7ef4576 Use configured TIME_FMT in vcd dump printf.
steve authored
108 * Revision 1.3 2003/10/02 21:30:06 steve
109 * Use configured TIME_FMT in vcd dump printf.
110 *
01d22e2 Put libraries in libdir64.
steve authored
111 * Revision 1.2 2003/10/02 19:33:44 steve
112 * Put libraries in libdir64.
113 *
f7b3c72 Add PLI_UINT64 to _pli_types.h.
steve authored
114 * Revision 1.1 2003/09/30 01:33:13 steve
115 * Add PLI_UINT64 to _pli_types.h.
116 *
b82a2d4 Typo type name.
steve authored
117 * Revision 1.2 2003/05/26 04:39:16 steve
118 * Typo type name.
119 *
d3de1d9 Add at least minimal implementations for several
steve authored
120 * Revision 1.1 2003/02/17 06:39:47 steve
121 * Add at least minimal implementations for several
122 * acc_ functions. Add support for standard ACC
123 * string handling.
124 *
125 * Add the _pli_types.h header file to carry the
126 * IEEE1364-2001 standard PLI type declarations.
127 *
128 */
129 #endif
Something went wrong with that request. Please try again.