00001 00002 /* 00003 00004 Copyright (C) 2008 . All Rights Reserved. 00005 00006 This program is free software; you can redistribute it and/or modify it 00007 under the terms of version 2 of the GNU General Public License as 00008 published by the Free Software Foundation. 00009 00010 This program is distributed in the hope that it would be useful, but 00011 WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 00014 Further, this software is distributed without any warranty that it is 00015 free of the rightful claim of any third person regarding infringement 00016 or the like. Any license provided herein, whether implied or 00017 otherwise, applies only to this software file. Patent licenses, if 00018 any, provided herein do not apply to combinations of this program with 00019 other software, or any other product whatsoever. 00020 00021 You should have received a copy of the GNU General Public License along 00022 with this program; if not, write the Free Software Foundation, Inc., 59 00023 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00024 00025 */ 00026 00027 RTA_API INT32 readword32(BITS pb, BITS b, INT sz) 00028 { 00029 FmtAssert(pb, ("Null pointer to Bits")); 00030 FmtAssert(pb <= (b+sz), ("pointers to Bits out of bound")); 00031 return *(INT32 *)(pb); 00032 } 00033 00034 RTA_API INT64 readword64(BITS pb, BITS b, INT sz) 00035 { 00036 FmtAssert(pb, ("Null pointer to Bits")); 00037 FmtAssert(pb <= (b+sz), ("pointers to Bits out of bound")); 00038 return *(INT64 *)(pb); 00039 } 00040 00041 extern void Print_whirl_pu_from_bits(FILE *f, BITS b, UINT sz); 00042 extern void Print_whirl_global_from_bits(FILE *f, BITS b, UINT sz); 00043 extern void Print_whirl_summary_from_bits(FILE *f, BITS b, UINT sz); 00044 extern void Print_whirl_flags_from_bits(FILE *f, BITS b, UINT sz);
1.5.6