Fixed-point processing method and device thereof
A fixed-point, processor technology, applied in the field of data processing, can solve problems such as powerlessness, and achieve the effect of improving operating efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] figure 1 It is the flow chart of the fixed-point processing method in Embodiment 1 of the present invention, such as figure 1 As shown, the method includes
[0037] Step 101, determining the numerical range of the floating-point variable in the floating-point code that does not include complex operations;
[0038] Step 102, analyzing the target platform processor that performs fixed-point processing on the floating-point variable, so as to obtain the special operation of the target platform processor, and determine the fixed-point strategy according to the analysis result;
[0039] Step 103, according to the numerical range of the floating-point variable and the fixed-point strategy, or according to the numerical range of the floating-point variable, the fixed-point strategy and the predetermined overall fixed-point accuracy, determine the fixed-point mode of each floating-point variable;
[0040] Step 104, perform fixed-point processing on the floating-point variable...
Embodiment 2
[0066] In the above-mentioned embodiment 1, the fixed-point processing method solves the problem of fixed-point precision and improves the operation efficiency. In addition, in some cases, when the test code is tested on a large scale on the target platform processor, some key calculations take a long time and become the bottleneck of the entire fixed-point code. For example, in the fixed-point code of the ARM9 processor, some key operations use 64-bit long integer data processing or even pseudo-floating point processing due to the large range of floating-point variable values. Because these key operations occupy a large part of the original floating-point code Part of the calculation time is longer after fixed-point conversion, which has become the speed bottleneck of the entire fixed-point code. The fixed-point processing method in Embodiment 2 can solve the above problem.
[0067] figure 2 It is the flow chart of the fixed-point processing method in Embodiment 2 of the pr...
Embodiment 3
[0084] Embodiment 3 of the present invention also provides a fixed-point processing method. Based on Embodiment 2, in this embodiment, after the modified fixed-point code is obtained in step 213, accuracy and performance tests are performed on the modified fixed-point code.
[0085]In this embodiment, the difference from Embodiment 2 is that after modifying the bottleneck operation according to the distribution statistics of the numerical range of the floating-point variables related to the bottleneck operation and the fixed-point strategy, and obtaining the modified fixed-point code , first use the test data to perform precision testing and target platform performance testing on the modified part of the fixed-point code, that is, first use the test data to perform precision testing and target platform performance testing on the fixed-point code with bottlenecks, where the accuracy requirements of the precision test It can be consistent with the overall accuracy test requireme...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


