Method and device for detecting leading zeros in mantissa of floating-point numbers

A detection method and floating-point number technology, applied in the fields of digital data processing parts, electrical digital data processing, instruments, etc., can solve the problems of reducing the detection speed, increasing the number of judgments, and speeding up the operation speed, so as to reduce the detection delay and improve the detection speed. effect of speed

Active Publication Date: 2018-10-12
LENOVO (BEIJING) LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But for 64-bit double-precision floating-point numbers, in order to speed up the operation, it is necessary to increase the number of mantissas in each group, thereby increasing the number of judgments per cycle and reducing the detection speed

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 detecting leading zeros in mantissa of floating-point numbers
  • Method and device for detecting leading zeros in mantissa of floating-point numbers
  • Method and device for detecting leading zeros in mantissa of floating-point numbers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] One of the core ideas of the method for detecting the leading zero of the mantissa of a floating-point number provided by the embodiment of the present invention is: the position of the mantissa with a value of 1 among all the mantissas of the floating-point number is represented by data in a certain base system, and the value is searched for The position of the mantissa of 1 is converted into the process of finding the largest data, so that it is not necessary to judge the position of the mantissa with a value of 1 in turn, reducing the detection delay caused by the judgment and improving the detection speed.

[0043] In order to enable those skilled in the art to better understand the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only the present inventi...

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

The invention provides a detection method and apparatus for leading zeros in mantissas of a floating-point number. The detection method for the leading zeros in the mantissas of the floating-point number comprises the steps of representing each mantissa with the value of 1 by data in one system in the positions of all mantissas of the floating-point number; selecting maximum data from all data in one system, wherein the value of the maximum data is greater than that of other data; and according to the total number of all the mantissas of the floating-point number and the maximum data, obtaining the number of the leading zeros in the mantissas of the floating-point number. That is to say, the process of searching for the position of the mantissa with the value of 1 is converted into the process of searching for the maximum data, so that the positions of the mantissas with the values of 1 do not need to be judged in sequence, the detection delay caused by judgment is shortened, and the detection speed is increased.

Description

technical field [0001] The invention relates to the technical field of floating-point number processing, in particular to a method and device for detecting leading zeros of mantissas of floating-point numbers. Background technique [0002] Compared with fixed-point arithmetic, floating-point arithmetic has the advantages of wide operation range and high precision, so floating-point arithmetic is widely used in various projects and algorithms. However, the floating-point calculation process is complicated, and the detection of the leading zero of the mantissa of the floating-point number is a key link in the floating-point number calculation, which has an important impact on the entire calculation speed. [0003] The currently commonly used floating-point number format is the IEEE754 (Institute of Electrical and Electronics Engineers, Institute of Electrical and Electronics Engineers) standard, and the floating-point number precision includes: 32-bit single precision, 64-bit ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F7/57
Inventor 姜莹
Owner LENOVO (BEIJING) LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products