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

A division operation method, device, equipment and storage medium

An operation method and division technology, applied in the computer field, can solve the problems of low database operation performance, slow calculation speed, etc.

Active Publication Date: 2020-06-30
SHANGHAI DAMENG DATABASE
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the data of Decimal data type (referred to as Decimal data) has a large range or more significant figures, the calculation speed is too slow when performing division operations on Decimal data, resulting in a decrease in database computing performance. There is an urgent need for a new Decimal data division method. Operation method

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
  • A division operation method, device, equipment and storage medium
  • A division operation method, device, equipment and storage medium
  • A division operation method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 1 It is a flow chart of the division operation method provided in Embodiment 1 of the present invention. The method can be executed by a division operation device, and specifically includes the following steps:

[0048] Step 110, the original dividend and the original divisor in the index sign byte storage value is set to be the same, to obtain the current benchmark dividend and the benchmark divisor; wherein, the original dividend and the original divisor respectively include an index sign byte and at least one significant figure word Festival.

[0049] The original dividend and the original divisor are the data that need to be divided. The original dividend and the original divisor are data of the Decimal data type, respectively including an exponent sign byte and at least one significand byte. The number of the exponent sign byte is generally 1 or more, and is used to store the exponent value and the sign value of the data. For example, the number of expone...

Embodiment 2

[0078] In this embodiment, on the basis of the foregoing embodiments, the operation of calculating the first digit of the quotient of dividing the current reference dividend by the reference divisor is further optimized. In fact, the method provided in this embodiment can also be applied to the subsequent calculation of the first digit of the quotient of the updated current benchmark dividend divided by the benchmark divisor, and then the temporary quotient can be obtained through the method provided in this embodiment. Wherein, the value of the significant digit stored in the numerator estimation quotient byte can be divided by the sum of the value of the significant digit stored in the denominator estimation quotient byte plus 1 and rounded to obtain the quotient value of dividing the current benchmark dividend by the benchmark divisor The minimum value of the range; divide the value of the significand stored in the numerator quotient byte by the value of the significand stor...

Embodiment 3

[0104] figure 2 It is a flow chart of the first digit calculation method of the quotient value of dividing the current benchmark dividend by the benchmark divisor provided by Embodiment 3 of the present invention. On the basis of the above-mentioned embodiments, this embodiment calculates the quotient of dividing the current benchmark dividend by the benchmark divisor The first bit operation of the value is further optimized. In addition, the method provided in this embodiment is especially applicable to an application scenario where the numerator quotient byte and the denominator quotient byte are 2 or more. It is worth noting that when the numerator quotient byte is M bytes more than the denominator quotient byte, the value of the significant digit stored in the numerator quotient byte and the value of the denominator estimator byte can be stored, Calculate the first M-1 digits of the quotient value of the current benchmark dividend divided by the benchmark divisor, as the...

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

An embodiment of the invention discloses a division operation method and device, equipment and a storage medium. The method includes: setting numerical values stored in exponent sign bytes in an original dividend and an original divisor to be identical to obtain a current standard dividend and a standard divisor; sequentially selecting numerator quotient estimation bytes and denominator quotient estimation bytes from the current standard dividend and the standard divisor; according to the numerator quotient estimation bytes and denominator quotient estimation bytes, dividing the current standard dividend by the standard divisor to obtain a quotient value, taking a first digit of the quotient value as a current digit quotient value, adding into a temporary quotient according to a sequence from high to low to serve as a last digit; according to numerical values stored in the exponent sign bytes in the original dividend and numerical values stored in the exponent sign bytes in the original divisor, calculating the temporary quotient to obtain a final quotient. By adoption of the method, division operation efficiency can be improved.

Description

technical field [0001] The embodiment of the present invention relates to computer technology, and in particular to a division operation method, device, equipment and storage medium. Background technique [0002] With the rapid development of computer technology, the Decimal data type appeared in the database (Database). In the Decimal data type, the integer part and fractional part of the data are stored separately, so that the Decimal data type can not only store a large range of data, but also save storage space. [0003] Since the data of Decimal data type (referred to as Decimal data) has a large range or more significant figures, the calculation speed is too slow when performing division operations on Decimal data, resulting in a decrease in database computing performance. There is an urgent need for a new Decimal data division method. Operation method. Contents of the invention [0004] Embodiments of the present invention provide a division operation method, devi...

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/487G06F16/21
CPCG06F7/4873G06F16/21
Inventor 望声宜彭青松
Owner SHANGHAI DAMENG DATABASE
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