发明名称 Minimal circuit for detecting loss of precision in floating point numbers
摘要 A circuit and method for detecting when converting a number from a floating point format to a fixed point format will result in a loss of precision. All bits but the most significant bit of the exponent of the floating point number are inverted. This results in a transformed exponent that is input to a comparator. The mantissa of the floating point number is input to a signed trailing one detector (STOD). The STOD outputs a signed number that indicates the bit position of the least significant logical "1" in the mantissa, plus a bias number. The bias number is chosen to be the number of bits in the fractional part of the fixed point format minus the number of bits in the mantissa. The output of the STOD is input to the other input of the comparator. The output of the comparator indicates whether or not a loss of precision occurs.
申请公布号 US5905663(A) 申请公布日期 1999.05.18
申请号 US19970867452 申请日期 1997.06.02
申请人 HEWLETT-PACKARD COMPANY 发明人 NASH, MARY LOUISE
分类号 H03M7/24;(IPC1-7):G06F7/38 主分类号 H03M7/24
代理机构 代理人
主权项
地址
您可能感兴趣的专利