1 /***************************************************************************
2                           sidint.h  -  AC99 types
3                              -------------------
4     begin                : Mon Jul 3 2000
5     copyright            : (C) 2000 by Simon White
6     email                : s_a_white@email.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 /* Setup for Microsoft Visual C++ Version 5 */
19 #ifndef _sidint_h_
20 #define _sidint_h_
21 
22 #include "sidconfig.h"
23 
24 /* Wanted: Exactly 8-bit unsigned/signed (1 byte). */
25 typedef signed char        int8_t;
26 typedef unsigned char      uint8_t;
27 
28 /* Small types.  */
29 /* Wanted: Atleast 8-bit unsigned/signed (1 byte). */
30 typedef signed char        int_least8_t;
31 typedef unsigned char      uint_least8_t;
32 
33 /* Wanted: Atleast 16-bit unsigned/signed (2 bytes). */
34 #if SID_SIZEOF_SHORT_INT >= 2
35 typedef short int          int_least16_t;
36 typedef unsigned short int uint_least16_t;
37 #else
38 typedef int                int_least16_t;
39 typedef unsigned int       uint_least16_t;
40 #endif /* SID_SIZEOF_SHORT_INT */
41 
42 /* Wanted: Atleast 32-bit unsigned/signed (4 bytes). */
43 #if SID_SIZEOF_INT >= 4
44 typedef int                int_least32_t;
45 typedef unsigned int       uint_least32_t;
46 #else
47 typedef long int           uint_least32_t;
48 typedef unsigned long int  uint_least32_t;
49 #endif /* SID_SIZEOF_INT */
50 
51 /* Wanted: Atleast 32-bits but final size is determined
52  * on which register size will provide best program
53  * performance
54  */
55 typedef uint_least32_t     uint_fast32_t;
56 
57 #endif /* _sidint_h_ */
58