APPARATUS, METHOD, AND PROGRAM FOR ARITHMETIC PROCESSING
First Claim
1. An arithmetic processing apparatus for determining an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus comprising:
- mantissa/exponent splitting means for splitting the input X in floating-point type data into a mantissa X1 and an exponent X2, the mantissa X1 being a mantissa part representing a mantissa of the input value X of a floating-point number, and the exponent X2 being an exponent part representing an exponent of the input value X of the floating-point number;
first recording means for recording a logarithmic value of the mantissa of the input value X having the constant number M as a base thereof, determined with respect to the mantissa X1;
interpolating means for performing an interpolation process on a plurality of logarithmic values retrieved from the first recording means in response to the mantissa X1 in order to determine the final logarithmic value of the mantissa;
logarithmic calculation means for calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the variable Y, the exponent X2, and the logarithmic value of the mantissa determined by the interpolating means; and
power calculation means for calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent.
1 Assignment
0 Petitions
Accused Products
Abstract
A mantissa/exponent splitter splits an input value X=(1+X1/223)×(2̂X2) into a mantissa X1 and an exponent X2. An interpolation processor references the mantissa/exponent splitter using the mantissa X1 and determines a power value (log2(1+X1/223)) through an interpolation process. A logarithmic calculator determines a logarithmic value Z=log2XY=Y(X2+log2 (1+X1/223)) from the exponent X2 and the power value from the interpolation processor. The integer/fraction splitter splits the logarithmic value Z into an integer Zint and a fraction Zamari. The interpolation processor references a power of fraction table storage unit in response to the fraction Zamari and determines a power value (2̂Zamari)through the interpolation process. The power calculator determines XY=2̂Z=(2̂Zamari)×(2̂Zint), thereby resulting in the input value X to the power of Y.
6 Citations
18 Claims
-
1. An arithmetic processing apparatus for determining an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus comprising:
-
mantissa/exponent splitting means for splitting the input X in floating-point type data into a mantissa X1 and an exponent X2, the mantissa X1 being a mantissa part representing a mantissa of the input value X of a floating-point number, and the exponent X2 being an exponent part representing an exponent of the input value X of the floating-point number; first recording means for recording a logarithmic value of the mantissa of the input value X having the constant number M as a base thereof, determined with respect to the mantissa X1; interpolating means for performing an interpolation process on a plurality of logarithmic values retrieved from the first recording means in response to the mantissa X1 in order to determine the final logarithmic value of the mantissa; logarithmic calculation means for calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the variable Y, the exponent X2, and the logarithmic value of the mantissa determined by the interpolating means; and power calculation means for calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent. - View Dependent Claims (2, 3)
-
-
4. An arithmetic processing method of an arithmetic processing apparatus for determining an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the processing apparatus including mantissa/exponent splitting means for splitting the input X in floating-point type data into a mantissa X1 and an exponent X2, the mantissa X1 being a mantissa part representing a mantissa of the input value X of a floating-point number, and the exponent X2 being an exponent part representing an exponent of the input value X of the floating-point number;
-
recording means for recording a logarithmic value of the mantissa of the input value X having the constant number M as a base thereof, determined with respect to the mantissa X1; interpolating means for performing an interpolation process on a plurality of logarithmic values retrieved from the recording means in response to the mantissa X1 in order to determine the final logarithmic value of the mantissa; logarithmic calculation means for calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the variable Y, the exponent X2, and the logarithmic value of the mantissa determined by the interpolating means; and power calculation means for calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent, the arithmetic processing method comprising the steps of; splitting the input value X into the mantissa X1 and the exponent X2; performing the interpolation process on the plurality of logarithmic values in order to determine the final logarithmic value of the mantissa; calculating the logarithmic value Z; and calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z as an exponent.
-
-
5. A program for causing an arithmetic processing apparatus to determine an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the program comprising the steps of:
-
splitting the input X in floating-point type data into a mantissa X1 and an exponent X2, the mantissa X1 being a mantissa part representing a mantissa of the input value X of a floating-point number, and the exponent X2 being an exponent part representing an exponent of the input value X of the floating-point number; performing an interpolation process on a plurality of logarithmic values of the mantissa of the input value X having the constant number M as a base determined with respect to the mantissa X1 in order to determine the final logarithmic value of the mantissa; calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the variable Y, the exponent X2, and the logarithmic value of the mantissa determined in the interpolation process; and calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent.
-
-
6. An arithmetic processing apparatus for determining an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus comprising:
-
logarithmic calculation means for calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y; integer/fraction splitting means for splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; first recording means for recording a power value of the constant number M raised to the power of the fraction Zamari as an exponent; interpolating means for performing an interpolation process on a plurality of logarithmic values retrieved from the first recording means in response to the fraction Zamari in order to determine the final power value of the constant number M; and power calculation means for calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent, based on the power value of the constant number M determined by the interpolating means and the integer Zint. - View Dependent Claims (7, 8)
-
-
9. An arithmetic processing method of an arithmetic processing apparatus for determining an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus including logarithmic calculation means for calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y;
-
integer/fraction splitting means for splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; recording means for recording a power value of the constant number M raised to the power of the fraction Zamari as an exponent; interpolating means for performing an interpolation process on a plurality of logarithmic values retrieved from the recording means in response to the fraction Zamari in order to determine the final power value of the constant number M; and power calculation means for calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent, based on the power value of the constant number M determined by the interpolating means and the integer Zint, the arithmetic processing method comprising the steps of; calculating the logarithmic value Z, based on the input value X and the variable Y; splitting the logarithmic value Z into the integer Zint and the fraction Zamari; performing the interpolation process on the plurality of logarithmic values in order to determine the final power value of the constant number M; calculating the logarithmic value Z; and calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z as an exponent, based on the power value of the constant number M and the integer Zint.
-
-
10. A program for causing an arithmetic processing apparatus to determine an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the program comprising the steps of:
-
calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y; splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; performing an interpolation process on a plurality of power values of the constant number M calculated by raising the constant number M to the power of the fraction Zamari as an exponent in order to determine the final power value of the constant number M; and calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent, based on the power value of the constant number M determined in the interpolation process and the integer Zint.
-
-
11. An arithmetic processing apparatus for determining an integer of an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus comprising:
-
logarithmic calculation means for calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y; integer/fraction splitting means for splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; and power integer converting means for determining the integer of the arithmetic value P by performing a right-shift operation on fixed-point data indicating the power value of the constant number M to the power of the fraction Zamari as an exponent, by the number of bits, the number of bit being obtained by subtracting the integer Zint from the number of bits of the fixed-point data from the least significant bit of the fixed-point data to the position of the decimal point of the fixed-point data. - View Dependent Claims (12, 13)
-
-
14. An arithmetic processing method of an arithmetic processing apparatus for determining an integer of an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, including logarithmic calculation means for calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y;
-
integer/fraction splitting means for splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; and power integer converting means for determining the integer of the arithmetic value P by performing a right-shift operation on fixed-point data indicating the power value of the constant number M to the power of the fraction Zamari as an exponent, by the number of bits, the number of bits being obtained by subtracting the integer Zint from the number of bits of the fixed-point data from the least significant bit of the fixed-point data to the position of the decimal point of the fixed-point data, the arithmetic processing method comprising the steps of; calculating the logarithmic value Z based on the input value X and the variable Y; splitting the logarithmic value Z into the integer Zint and the fraction Zamari; and performing the right-shift operation to determine the integer of the arithmetic value P.
-
-
15. A computer program for causing an arithmetic processing apparatus to determine an integer of an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the computer program comprising the steps of:
-
calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y; splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; and determining the integer of the arithmetic value P by performing a right-shift operation on fixed-point data indicating the power value of the constant number M to the power of the fraction Zamari as an exponent, by the number of bits, the number of bits being obtained by subtracting the integer Zint from the number of bits of the fixed-point data from the least significant bit of the fixed-point data to the position of the decimal point of the fixed-point data.
-
-
16. An arithmetic processing apparatus for determining an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus comprising:
-
a mantissa/exponent splitting unit splitting the input X in floating-point type data into a mantissa X1 and an exponent X2, the mantissa X1 being a mantissa part representing a mantissa of the input value X of a floating-point number, and the exponent X2 being an exponent part representing an exponent of the input value X of the floating-point number; a first recording unit recording a logarithmic value of the mantissa of the input value X having the constant number M as a base thereof, determined with respect to the mantissa X1; an interpolating unit performing an interpolation process on a plurality of logarithmic values retrieved from the first recording unit in response to the mantissa X1 in order to determine the final logarithmic value of the mantissa; a logarithmic calculation unit calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the variable Y, the exponent X2, and the logarithmic value of the mantissa determined by the interpolating unit; and a power calculation unit calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent.
-
-
17. An arithmetic processing apparatus for determining an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus comprising:
-
a logarithmic calculation unit calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y; an integer/fraction splitting unit splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; a first recording unit recording a power value of the constant number M raised to the power of the fraction Zamari as an exponent; interpolating unit performing an interpolation process on a plurality of logarithmic values retrieved from the first recording unit in response to the fraction Zamari in order to determine the final power value of the constant number M; and a power calculation unit calculating the arithmetic value P by raising the constant value M to the power of the logarithmic value Z of the arithmetic value P as an exponent, based on the power value of the constant number M determined by the interpolating unit and the integer Zint.
-
-
18. An arithmetic processing apparatus for determining an integer of an arithmetic value P, the arithmetic value P being an input value X raised to the power of a variable Y as an exponent, and the input value X represented by a base-M system with M being a predetermined constant number, the arithmetic processing apparatus comprising:
-
a logarithmic calculation unit calculating a logarithmic value Z of the arithmetic value P having the constant number M as a base thereof, based on the input value X and the variable Y; an integer/fraction splitting unit splitting the logarithmic value Z of the arithmetic value P into an integer Zint as an integer part of the logarithmic value Z and a fraction Zamari as a fraction part of the logarithmic value Z; and a power integer converting unit determining the integer of the arithmetic value P by performing a right-shift operation on fixed-point data indicating the power value of the constant number M to the power of the fraction Zamari as an exponent, by the number of bits, the number of bits being obtained by subtracting the integer Zint from the number of bits of the fixed-point data from the least significant bit of the fixed-point data to the position of the decimal point of the fixed-point data.
-
Specification