Branch-free software methodology for transcendental functions
First Claim
1. A computer-implemented method for approximating a function of an input argument, comprising:
- selecting one of a plurality of breakpoints, such that a reduced argument for the function is less than a predetermined value; and
evaluating an approximate function of the reduced argument, including accessing a look-up table based on the selected breakpoint to obtain a value of a term in the approximate function, wherein the look-up table has at least one breakpoint for which the reduced argument can be computed without roundoff error when the input argument is close to a root of the function.
1 Assignment
0 Petitions
Accused Products
Abstract
Various embodiments of a computer-implemented branch-free methodology for approximating a function of an input argument are disclosed. The methodology includes selecting one of a number of breakpoints, such that a reduced argument for the function is less than a predetermined value. An approximate function of the reduced argument is evaluated, including accessing a look-up table based on the selected breakpoint to obtain value of a term in the approximate function. The look-up table has at least one breakpoint for which the reduced argument can be computed without roundoff error when the input argument is close to a root of the function. The branch-free methodology may be applied to compute transcendental functions such as the exponential, logarithm, and trigonometric functions.
10 Citations
29 Claims
-
1. A computer-implemented method for approximating a function of an input argument, comprising:
-
selecting one of a plurality of breakpoints, such that a reduced argument for the function is less than a predetermined value; and
evaluating an approximate function of the reduced argument, including accessing a look-up table based on the selected breakpoint to obtain a value of a term in the approximate function, wherein the look-up table has at least one breakpoint for which the reduced argument can be computed without roundoff error when the input argument is close to a root of the function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. An article of manufacture, comprising:
a machine readable medium having instructions stored therein that can be executed by a processor to approximate a function of an input argument by selecting one of a plurality of breakpoints, such that a reduced argument for the function is less than a predetermined value, and evaluating an approximate function of the reduced argument including accessing a look-up table based on the selected breakpoint to obtain a value of a term in the approximate function, wherein the look-up table has at least one breakpoint for which the reduced argument can be computed without roundoff error when the input argument is close to a root of the function. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
23. A computer system comprising:
a processor coupled to a non-volatile storage device, the storage device contains instructions that when executed by the processor approximate a function of a number, by selecting one of a plurality of breakpoints, such that a reduced argument for the function is less than a predetermined value, and evaluating an approximate function of the reduced argument including accessing a look-up table based on the selected breakpoint to obtain a value of a term in the approximate function, wherein the look-up table has at least one breakpoint for which the reduced argument can be computed without roundoff error when the input argument is close to a root of the function. - View Dependent Claims (24, 25, 26, 27, 28, 29)
Specification