00001 /* Copyright (C) 2008 - Ruben Niederhagen 00002 * This program is free software; you can redistribute it and/or 00003 * modify it under the terms of the GNU General Public License 00004 * as published by the Free Software Foundation; either version 3 00005 * of the License, or (at your option) any later version. 00006 * 00007 * This program is distributed in the hope that it will be useful, 00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 * GNU General Public License for more details. 00011 * 00012 * You should have received a copy of the GNU General Public License 00013 * along with this program; if not, you will find it online at 00014 * http://www.gnu.org/licenses/gpl.html 00015 */ 00016 00022 #ifndef _IOLAOS_INCLUDE_TYPES_H_ 00023 #define _IOLAOS_INCLUDE_TYPES_H_ 00024 00025 #include <stdint.h> 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00058 #define dump(x, fmt) printf("%s:%u: %s=" fmt "\n", __FILE__, __LINE__, #x, x) 00059 00068 typedef union 00069 { 00070 struct 00071 { 00072 #ifndef __powerpc64__ 00073 void *pad; 00074 #endif 00075 void *p; 00076 } ; 00077 uint64_t ull; 00078 uint32_t ui[2]; 00079 } addr64_t; 00080 00081 #ifdef __cplusplus 00082 } 00083 #endif 00084 00085 #endif /* _IOLAOS_INCLUDE_TYPES_H_ */