Fix for PDPFLOAT format
This commit is contained in:
parent
6dac59f2d4
commit
e2732629bf
1 changed files with 4 additions and 0 deletions
|
@ -103,7 +103,11 @@ float_cst(str, sz, buf)
|
||||||
#ifdef IEEEFLOAT
|
#ifdef IEEEFLOAT
|
||||||
if (sz == 4) {
|
if (sz == 4) {
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef PDPFLOAT
|
||||||
|
e.flt_exp += 129;
|
||||||
|
#else
|
||||||
e.flt_exp += 127;
|
e.flt_exp += 127;
|
||||||
|
#endif
|
||||||
if (e.flt_mantissa.flt_h_32 == 0) e.flt_exp = 0;
|
if (e.flt_mantissa.flt_h_32 == 0) e.flt_exp = 0;
|
||||||
#ifdef IEEEFLOAT
|
#ifdef IEEEFLOAT
|
||||||
if (e.flt_mantissa.flt_h_32 & 0x80) {
|
if (e.flt_mantissa.flt_h_32 & 0x80) {
|
||||||
|
|
Loading…
Reference in a new issue