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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com