1bc1f688bSRobert Mustacchi /* 2bc1f688bSRobert Mustacchi 3bc1f688bSRobert Mustacchi Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. 4*4d9fdb46SRobert Mustacchi Portions Copyright 2014-2014 David Anderson. All Rights Reserved. 5bc1f688bSRobert Mustacchi 6bc1f688bSRobert Mustacchi This program is free software; you can redistribute it and/or modify it 7bc1f688bSRobert Mustacchi under the terms of version 2.1 of the GNU Lesser General Public License 8bc1f688bSRobert Mustacchi as published by the Free Software Foundation. 9bc1f688bSRobert Mustacchi 10bc1f688bSRobert Mustacchi This program is distributed in the hope that it would be useful, but 11bc1f688bSRobert Mustacchi WITHOUT ANY WARRANTY; without even the implied warranty of 12bc1f688bSRobert Mustacchi MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13bc1f688bSRobert Mustacchi 14bc1f688bSRobert Mustacchi Further, this software is distributed without any warranty that it is 15bc1f688bSRobert Mustacchi free of the rightful claim of any third person regarding infringement 16bc1f688bSRobert Mustacchi or the like. Any license provided herein, whether implied or 17bc1f688bSRobert Mustacchi otherwise, applies only to this software file. Patent licenses, if 18bc1f688bSRobert Mustacchi any, provided herein do not apply to combinations of this program with 19bc1f688bSRobert Mustacchi other software, or any other product whatsoever. 20bc1f688bSRobert Mustacchi 21bc1f688bSRobert Mustacchi You should have received a copy of the GNU Lesser General Public 22bc1f688bSRobert Mustacchi License along with this program; if not, write the Free Software 23bc1f688bSRobert Mustacchi Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, 24bc1f688bSRobert Mustacchi USA. 25bc1f688bSRobert Mustacchi 26bc1f688bSRobert Mustacchi */ 27bc1f688bSRobert Mustacchi 28*4d9fdb46SRobert Mustacchi /* Definition of sizes of types. Independent of 29*4d9fdb46SRobert Mustacchi target or host, these are. */ 30*4d9fdb46SRobert Mustacchi #define sizeof_ubyte(dbg) 1 31*4d9fdb46SRobert Mustacchi #define sizeof_uhalf(dbg) DWARF_HALF_SIZE 32bc1f688bSRobert Mustacchi 33bc1f688bSRobert Mustacchi /* Computes amount of padding necessary to align n to a k-boundary. */ 34bc1f688bSRobert Mustacchi /* Important: Assumes n, k both GREATER than zero. */ 35bc1f688bSRobert Mustacchi #define PADDING(n, k) ( (k)-1 - ((n)-1)%(k) ) 36