Floating-Point Data Precision Conversion Method and Apparatus
개요
발명자
Wei Hsiang Wu; Yuanyong Luo; Minqi Chen; Zhongxing Zhang
IPC 분류
CPC 분류
A floating-point data precision conversion method includes determining a bit width of a second mantissa field based on a coded value of a first exponent field. The floating-point data precision method further includes determining a reserved coded value and a discarded coded value in a first mantissa field. The floating-point data precision method further includes, if the coded value of the first exponent field is greater than or equal to a first preset threshold, performing a rounding operation on the reserved coded value based on a coded value that starts from a most significant bit and whose bit width is a preset bit width in the discarded coded value, to obtain a coded value of the second mantissa field.
원문 (중국어)
A floating-point data precision conversion method includes determining a bit width of a second mantissa field based on a coded value of a first exponent field. The floating-point data precision method further includes determining a reserved coded value and a discarded coded value in a first mantissa field. The floating-point data precision method further includes, if the coded value of the first exponent field is greater than or equal to a first preset threshold, performing a rounding operation on the reserved coded value based on a coded value that starts from a most significant bit and whose bit width is a preset bit width in the discarded coded value, to obtain a coded value of the second mantissa field.