projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comments on using board file remote-gdbserver-on-localhost.exp
[deliverable/binutils-gdb.git]
/
opcodes
/
tic30-dis.c
diff --git
a/opcodes/tic30-dis.c
b/opcodes/tic30-dis.c
index c5fafd82192419377ce3640bef7ffc51480ce9b8..907743423c96db0fd82df68cc1b049697adc59dd 100644
(file)
--- a/
opcodes/tic30-dis.c
+++ b/
opcodes/tic30-dis.c
@@
-1,5
+1,5
@@
/* Disassembly routines for TMS320C30 architecture
/* Disassembly routines for TMS320C30 architecture
- Copyright
1998, 1999, 2000, 2002, 2005, 2007
Free Software Foundation, Inc.
+ Copyright
(C) 1998-2015
Free Software Foundation, Inc.
Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
This file is part of the GNU opcodes library.
Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
This file is part of the GNU opcodes library.
@@
-19,9
+19,9
@@
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
+#include "sysdep.h"
#include <errno.h>
#include <math.h>
#include <errno.h>
#include <math.h>
-#include "sysdep.h"
#include "dis-asm.h"
#include "opcode/tic30.h"
#include "dis-asm.h"
#include "opcode/tic30.h"
@@
-274,7
+274,7
@@
get_indirect_operand (unsigned short fragment,
static int
cnvt_tmsfloat_ieee (unsigned long tmsfloat, int size, float *ieeefloat)
{
static int
cnvt_tmsfloat_ieee (unsigned long tmsfloat, int size, float *ieeefloat)
{
- unsigned long exp, sign, mant;
+ unsigned long exp
onent
, sign, mant;
union
{
unsigned long l;
union
{
unsigned long l;
@@
-291,16
+291,16
@@
cnvt_tmsfloat_ieee (unsigned long tmsfloat, int size, float *ieeefloat)
tmsfloat = (long) tmsfloat >> 4;
}
}
tmsfloat = (long) tmsfloat >> 4;
}
}
- exp = tmsfloat & 0xFF000000;
- if (exp == 0x80000000)
+ exp
onent
= tmsfloat & 0xFF000000;
+ if (exp
onent
== 0x80000000)
{
*ieeefloat = 0.0;
return 1;
}
{
*ieeefloat = 0.0;
return 1;
}
- exp += 0x7F000000;
+ exp
onent
+= 0x7F000000;
sign = (tmsfloat & 0x00800000) << 8;
mant = tmsfloat & 0x007FFFFF;
sign = (tmsfloat & 0x00800000) << 8;
mant = tmsfloat & 0x007FFFFF;
- if (exp == 0xFF000000)
+ if (exp
onent
== 0xFF000000)
{
if (mant == 0)
*ieeefloat = ERANGE;
{
if (mant == 0)
*ieeefloat = ERANGE;
@@
-317,18
+317,18
@@
cnvt_tmsfloat_ieee (unsigned long tmsfloat, int size, float *ieeefloat)
#endif
return 1;
}
#endif
return 1;
}
- exp >>= 1;
+ exp
onent
>>= 1;
if (sign)
{
mant = (~mant) & 0x007FFFFF;
mant += 1;
if (sign)
{
mant = (~mant) & 0x007FFFFF;
mant += 1;
- exp += mant & 0x00800000;
- exp &= 0x7F800000;
+ exp
onent
+= mant & 0x00800000;
+ exp
onent
&= 0x7F800000;
mant &= 0x007FFFFF;
}
if (tmsfloat == 0x80000000)
mant &= 0x007FFFFF;
}
if (tmsfloat == 0x80000000)
- sign = mant = exp = 0;
- tmsfloat = sign | exp | mant;
+ sign = mant = exp
onent
= 0;
+ tmsfloat = sign | exp
onent
| mant;
val.l = tmsfloat;
*ieeefloat = val.f;
return 1;
val.l = tmsfloat;
*ieeefloat = val.f;
return 1;
This page took
0.024128 seconds
and
4
git commands to generate.