/[escript]/trunk/esys2/esysUtils/src/EsysTypes.h
ViewVC logotype

Contents of /trunk/esys2/esysUtils/src/EsysTypes.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (14 years, 10 months ago) by jgs
File MIME type: text/plain
File size: 1619 byte(s)
Initial revision

1 /*=============================================================================
2
3 ******************************************************************************
4 * *
5 * COPYRIGHT ACcESS 2004 - All Rights Reserved *
6 * *
7 * This software is the property of ACcESS. No part of this code *
8 * may be copied in any form or by any means without the expressed written *
9 * consent of ACcESS. Copying, use or modification of this software *
10 * by any unauthorised person is illegal unless that person has a software *
11 * license agreement with ACcESS. *
12 * *
13 ******************************************************************************
14
15 ******************************************************************************/
16
17 #ifndef ESYSTYPES_H
18 #define ESYSTYPES_H
19 /*
20 * Use the integer types defined in the 1999 ISO C Standard
21 * To specify a suitable Esys integer type
22 */
23 #include <stdint.h>
24
25 #if ESYS_INT_BITS==64
26 typedef int64_t EsysIntType;
27 #else
28 typedef int32_t EsysIntType;
29 #endif
30
31 /*
32 * A primative test to ensure the array index type is at least as large
33 * as requested. Could put in another test if it is larger.
34 * An obscure compile error will result if the array index type isn't large
35 * enough
36 *
37 */
38 static char EsysIntType_Too_Small[sizeof(EsysIntType)*8-ESYS_INT_BITS];
39
40
41 #endif

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26