Method and device for processing floating point numbers

A processing method and floating-point number technology, applied in the computer field, can solve problems such as lack of double-precision floating-point number computing capability, poor double-precision floating-point number computing capability, etc.
CN105224284BActive Publication Date: 2017-12-08BEIJING QIYI CENTURY SCI & TECH CO LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING QIYI CENTURY SCI & TECH CO LTD
Publication Date
2017-12-08

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

Embodiments of the invention disclose a method and a device for processing floating-point numbers. The method comprises: obtaining a first target floating-point number X and a second target floating-point number Y; obtaining an operation rule of the X and the Y; under the condition that the X and the Y are not zero, performing exponent matching on the X and the Y; calculating the exponent of a final result; respectively segmenting the mantissas of the X and the Y whose exponents are matched, and respectively calculating results of each segment data of the mantissa of the X and each segment data of the mantissa of the Y; according to calculation result, generating a final mantissa; according to the final mantissa and the exponent obtained by calculation, generating a calculation result; and performing normalizing processing on the calculation result, to obtain a final calculation result. Using the method, the mantissa of a floating-point number with high precision is segmented, and each segment of mantissa is converted to the floating-point number with single precision to calculate, so that lower-end CPU products which do not have double-precision floating-point number computing power have high-precision floating-point number computing power, and computing power of the lower-end CPU products on the high-precision floating-point number is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer technology, in particular to a floating-point number processing method and device. Background technique

[0002] GPU (Graphics Processing Unit, graphics processing unit), also known as graphics processing unit, display core, visual processor, display chip, is a kind of graphics processing unit specially used in personal computers, workstations, game consoles and some mobile devices (such as tablet computers, smart phones) etc.) Microprocessors that work on image operations.

[0003] At present, the floating-point number calculation performance of the GPU is much higher than that of the CPU, so the GPU is also mainly used for floating-point number calculations.

[0004] However, due to cost and market segmentation considerations, GPU manufacturers will retain double-precision floating-point hardware computing units on high-end GPU products, and reduce double-precision floating-point hardware computing unit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More