Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (41 sloc) 1.308 kb
aaad509c » ozbenh
2010-12-01 Initial import of slof-JX-1.7.0-4
1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
3 * All rights reserved.
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
8 *
9 * Contributors:
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
12 //
13 // Copyright 2002,2003,2004 Segher Boessenkool <segher@kernel.crashing.org>
14 //
15
16
17 #ifndef _TYPES_H
18 #define _TYPES_H
19
20 #if 0
21 #include <stdint.h>
22
23 typedef uint8_t type_c; // 1 byte
24 typedef uint16_t type_w; // 2 bytes
25 typedef uint32_t type_l; // 4 bytes
26 typedef intptr_t type_n; // cell size
27 typedef uintptr_t type_u; // cell size
28 #else
29 typedef unsigned char type_c; // 1 byte
30 typedef unsigned short type_w; // 2 bytes
31 typedef unsigned int type_l; // 4 bytes
32 typedef long type_n; // cell size
33 typedef unsigned long type_u; // cell size
34 #endif
35
36 //#define CELLSIZE (sizeof(type_u) / sizeof(type_c))
37 #define CELLSIZE sizeof(type_u)
38
39 typedef union cell {
40 type_n n;
41 type_u u;
42 void *a;
43 type_c c[CELLSIZE];
44 type_w w[CELLSIZE/2];
45 type_l l[CELLSIZE/4];
46 } cell;
47
48
49 #endif /* _TYPES_H */
Something went wrong with that request. Please try again.