Annotation of generator/hdr/machine.h, revision 1.1.1.1

1.1       root        1: /*****************************************************************************/
                      2: /*     Generator - Sega Genesis emulation - (c) James Ponder 1997-1998       */
                      3: /*****************************************************************************/
                      4: /*                                                                           */
                      5: /* machine.h                                                                 */
                      6: /*                                                                           */
                      7: /*****************************************************************************/
                      8: 
                      9: #include "config.h"
                     10: 
                     11: /* get correct sizes for uint8, uint16 and uint32 */
                     12: 
                     13: #if (SIZEOF_UNSIGNED_CHAR == 1)
                     14: typedef unsigned char uint8;
                     15: typedef signed char sint8;
                     16: #elif (SIZEOF_UNSIGNED_SHORT == 1)
                     17: typedef unsigned short uint8;
                     18: typedef signed short sint8;
                     19: #elif (SIZEOF_UNSIGNED_INT == 1)
                     20: typedef unsigned int uint8;
                     21: typedef signed int sint8;
                     22: #elif (SIZEOF_UNSIGNED_LONG == 1)
                     23: typedef unsigned long uint8;
                     24: typedef signed long sint8;
                     25: #elif (SIZEOF_UNSIGNED_LONG_LONG == 1)
                     26: typedef unsigned long long uint8;
                     27: typedef signed long long sint8;
                     28: #else
                     29: #error Unable to work out the 8-bit integer names
                     30: #endif
                     31: 
                     32: #if (SIZEOF_UNSIGNED_CHAR == 2)
                     33: typedef unsigned char uint16;
                     34: typedef signed char sint16;
                     35: #elif (SIZEOF_UNSIGNED_SHORT == 2)
                     36: typedef unsigned short uint16;
                     37: typedef signed short sint16;
                     38: #elif (SIZEOF_UNSIGNED_INT == 2)
                     39: typedef unsigned int uint16;
                     40: typedef signed int sint16;
                     41: #elif (SIZEOF_UNSIGNED_LONG == 2)
                     42: typedef unsigned long uint16;
                     43: typedef signed long sint16;
                     44: #elif (SIZEOF_UNSIGNED_LONG_LONG == 2)
                     45: typedef unsigned long long uint16;
                     46: typedef signed long long sint16;
                     47: #else
                     48: #error Unable to work out the 16-bit integer names
                     49: #endif
                     50: 
                     51: #if (SIZEOF_UNSIGNED_CHAR == 4)
                     52: typedef unsigned char uint32;
                     53: typedef signed char sint32;
                     54: #elif (SIZEOF_UNSIGNED_SHORT == 4)
                     55: typedef unsigned short uint32;
                     56: typedef signed short sint32;
                     57: #elif (SIZEOF_UNSIGNED_INT == 4)
                     58: typedef unsigned int uint32;
                     59: typedef signed int sint32;
                     60: #elif (SIZEOF_UNSIGNED_LONG == 4)
                     61: typedef unsigned long uint32;
                     62: typedef signed long sint32;
                     63: #elif (SIZEOF_UNSIGNED_LONG_LONG == 4)
                     64: typedef unsigned long long uint32;
                     65: typedef signed long long sint32;
                     66: #else
                     67: #error Unable to work out the 32-bit integer names
                     68: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.