comparison libiberty/floatformat.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents a06113de4d67
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* IEEE floating point support routines, for GDB, the GNU Debugger. 1 /* IEEE floating point support routines, for GDB, the GNU Debugger.
2 Copyright 1991, 1994, 1999, 2000, 2003, 2005, 2006 2 Copyright 1991, 1994, 1999, 2000, 2003, 2005, 2006, 2010
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This file is part of GDB. 5 This file is part of GDB.
6 6
7 This program is free software; you can redistribute it and/or modify 7 This program is free software; you can redistribute it and/or modify
75 /* The odds that CHAR_BIT will be anything but 8 are low enough that I'm not 75 /* The odds that CHAR_BIT will be anything but 8 are low enough that I'm not
76 going to bother with trying to muck around with whether it is defined in 76 going to bother with trying to muck around with whether it is defined in
77 a system header, what we do if not, etc. */ 77 a system header, what we do if not, etc. */
78 #define FLOATFORMAT_CHAR_BIT 8 78 #define FLOATFORMAT_CHAR_BIT 8
79 79
80 /* floatformats for IEEE single and double, big and little endian. */ 80 /* floatformats for IEEE half, single and double, big and little endian. */
81 const struct floatformat floatformat_ieee_half_big =
82 {
83 floatformat_big, 16, 0, 1, 5, 15, 31, 6, 10,
84 floatformat_intbit_no,
85 "floatformat_ieee_half_big",
86 floatformat_always_valid,
87 NULL
88 };
89 const struct floatformat floatformat_ieee_half_little =
90 {
91 floatformat_little, 16, 0, 1, 5, 15, 31, 6, 10,
92 floatformat_intbit_no,
93 "floatformat_ieee_half_little",
94 floatformat_always_valid,
95 NULL
96 };
81 const struct floatformat floatformat_ieee_single_big = 97 const struct floatformat floatformat_ieee_single_big =
82 { 98 {
83 floatformat_big, 32, 0, 1, 8, 127, 255, 9, 23, 99 floatformat_big, 32, 0, 1, 8, 127, 255, 9, 23,
84 floatformat_intbit_no, 100 floatformat_intbit_no,
85 "floatformat_ieee_single_big", 101 "floatformat_ieee_single_big",