Go to the source code of this file.
void DSPtoIEEE32 |
( |
short |
DSPmantissa, |
|
|
short |
DSPexp, |
|
|
float * |
f |
|
) |
| |
Definition at line 151 of file Lut.cc.
Referenced by lutFmt().
152 if (
i < 10 )
return (
i +
'0' );
153 else return ( (
i - 10 ) +
'A' );
void IEEE32toDSP |
( |
float |
f, |
|
|
short * |
DSPmantissa, |
|
|
short * |
DSPexp |
|
) |
| |
Definition at line 416 of file Lut.cc.
References f, i, and Validation_hcalonly_cfi::sign.
423 union {
float f; uint32_t
i; } u;
437 if((pl & 0x80000000)!=0)
439 lm =( 0x800000 | (pl & 0x7FFFFF));
442 *DSPexp = ((pl>>23)&0xFF)-126;
443 *DSPmantissa = (short)lm;
445 *DSPmantissa = - *DSPmantissa;
std::string lutFmt |
( |
int |
i | ) |
|