Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for processing floating-point number

A processing method and technology of floating-point numbers, applied in the computer field, can solve problems such as lack of double-precision floating-point number calculation ability and poor double-precision floating-point number calculation ability

Active Publication Date: 2016-01-06
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[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 units on mid- and low-end GPU products. Low-end and mid-end GPU products have poor double-precision floating-point calculation capabilities, or even do not have double-precision floating-point calculation capabilities.

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for processing floating-point number
  • Method and device for processing floating-point number

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0074] In order to solve the problems in the prior art, an embodiment of the present invention provides a floating-point number processing method and device. A floating-point number processing method provided by an embodiment of the present invention is firstly introduced below.

[0075] figure 1 A schematic flowchart of a floating-point number processing method provided by an embodiment of the present invention may include:

[0076] S101: Obtain the first target...

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

PUM

No PUM Login to View More

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; determining whether the X and the Y are not zero; if the X and the Y are not zero, and exponents of the X and the Y are not equal, matching exponents of the X and the Y; respectively segmenting the mantissas of the X and the Y whose exponents are matched, converting each segment of data to a floating-point number with single precision; respectively calculating results of mantissa corresponding segment data, according to result of each segment of data obtained by calculation, generating final mantissas; and generating a calculation result; and performing normalizing processing on the 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.

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 (GraphicsProcessingUnit, graphics processing unit), also known as graphics processor, display core, visual processor, display chip, is a special graphics processing unit in personal computers, workstations, game consoles and some mobile devices (such as tablets, smartphones, etc.) Microprocessor for image computing work. [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 units on mid- and low-end GPU products. Lo...

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

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F7/57
Inventor 潘昊
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products