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