1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
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
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
13 // Copyright 2002,2003,2004 Segher Boessenkool <segher@kernel.crashing.org>
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
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
36 //#define CELLSIZE (sizeof(type_u) / sizeof(type_c))
37 #define CELLSIZE sizeof(type_u)