JP2006023974A - Remainder calculation processor and remainder calculation processing method - Google Patents

Remainder calculation processor and remainder calculation processing method Download PDF

Info

Publication number
JP2006023974A
JP2006023974A JP2004201314A JP2004201314A JP2006023974A JP 2006023974 A JP2006023974 A JP 2006023974A JP 2004201314 A JP2004201314 A JP 2004201314A JP 2004201314 A JP2004201314 A JP 2004201314A JP 2006023974 A JP2006023974 A JP 2006023974A
Authority
JP
Japan
Prior art keywords
divisor
fixed
multiplication
point display
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2004201314A
Other languages
Japanese (ja)
Inventor
Yuka Senkawa
由佳 洗川
Toshiaki Nobumoto
俊明 信本
Yoshihiro Terajima
義浩 寺島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2004201314A priority Critical patent/JP2006023974A/en
Publication of JP2006023974A publication Critical patent/JP2006023974A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a remainder calculation processor and a remainder calculation processing method capable of performing remainder calculation by a multiplication method, and reducing the processing quantity of remainder calculation for an input value whose range is limited. <P>SOLUTION: When an integer whose range is limited is defined as a dividend and the integer of a fixed value is defined as a divisor, a dividend (103) is multiplied (104) by an invert (100) of a fixed point display divisor, and a decimal part is extracted from the multiplication result of the invert (106), and the extraction result of the decimal part is multiplied (108) by a divisor (107), and an integral part is extracted (110) as a division calculation result from a multiplication result (109). In this case, an error to be generated due to the cutoff of non-display digits is guaranteed by adding 1 to the least significant digit of the valid display digits of the invert (100) of the divisor (102) to perform the above arithmetic processing. Also, the number of digits of the fixed point display decimal part is defined as the precisely guaranteed minimum number of digits, and when the decimal point is extracted (106), the decimal part is extracted by mask processing with the precisely guaranteed minimum number of bits. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、剰余演算処理装置及び剰余演算処理方法に関し、特に、DSP(Digital Signal Processor)等のプロセッサにより、より高速に剰余演算の処理を行うための剰余演算処理装置及び剰余演算処理方法に関する。   The present invention relates to a residue calculation processing device and a residue calculation processing method, and more particularly to a residue calculation processing device and a residue calculation processing method for performing a residue calculation process at a higher speed by a processor such as a DSP (Digital Signal Processor).

W−CDMA(Wideband Code Division Multiple Access)のベースバンド信号処理部のDSP等のプロセッサにおいて、装置内の基準タイマとなる無線フレーム又はタイムスロット等のカウント値を算出するために剰余演算を行う。従来、DSP等のプロセッサ又はシミュレータにおける剰余演算は、プロセッサ又はシミュレータ専用のライブラリを使用して演算を行っている。   In a processor such as a DSP of a baseband signal processing unit of W-CDMA (Wideband Code Division Multiple Access), a remainder calculation is performed in order to calculate a count value of a radio frame or a time slot serving as a reference timer in the apparatus. Conventionally, a remainder operation in a processor or simulator such as a DSP is performed using a library dedicated to the processor or simulator.

ライブラリを使用した剰余演算は、減算法とAND法とを並列して使用している。被除数X,除数Yとしたとき、減算法による剰余演算は、以下のように被除数Xから除数Yを減算する処理を繰り返し行う。
X−Y=X
−Y=X
−Y=X
・・・
−Y=Xn+1
The remainder calculation using the library uses the subtraction method and the AND method in parallel. When the dividend X and the divisor Y are used, the remainder calculation by the subtraction method repeatedly performs the process of subtracting the divisor Y from the dividend X as follows.
X−Y = X 1
X 1 −Y = X 2
X 2 -Y = X 3
...
Xn- Y = Xn + 1

ここで繰り返し減算を行ったときの演算結果Xn+1が、
n+1<Y
となったとき、Xn+1を剰余として出力する。即ち、除数Yによる減算を繰り返し行い、その減算結果が除数Yより小さくなったとき、減算結果を剰余として出力する。
Here, the operation result X n + 1 when the subtraction is repeatedly performed is
X n + 1 <Y
Then, X n + 1 is output as a remainder. That is, the subtraction by the divisor Y is repeatedly performed, and when the subtraction result becomes smaller than the divisor Y, the subtraction result is output as a remainder.

AND法は除数Yが2の乗数の場合のみ使用される手法で、被除数Xを(除数Y−1)でマスクして剰余を算出する手法である。例えば、10を被除数、2の二乗である4を除数とした場合のAND法による剰余は以下のように算出される。
10%4=10&(4−1)=2
The AND method is a method used only when the divisor Y is a multiplier of 2. The AND method is a method of calculating the remainder by masking the dividend X with (divisor Y-1). For example, the remainder by the AND method when 10 is a dividend and 2 which is the square of 2 is calculated as follows.
10% 4 = 10 & (4-1) = 2

ここで「10%4」は、10を被除数、4を除数としたときの剰余を表し、「10&(4−1)=2」は「10(2進数表示で1010)」と「(4−1)(2進数表示で0011)とを、各桁のビット同士で論理積(AND)演算処理(即ちマスク処理)を行い、その結果、「2(2進数表示で0010)」が得られることを表している。   Here, “10% 4” represents the remainder when 10 is the dividend and 4 is the divisor, and “10 & (4-1) = 2” is “10 (1010 in binary notation)” and “(4- 1) (0011 in binary notation) and logical product (AND) operation processing (that is, mask processing) between bits of each digit, and as a result, “2 (0010 in binary notation)” is obtained. Represents.

また、剰余演算は、被除数x(整数)の除数a(整数)による商をb(整数)、剰余をc(整数)としたとき、剰余cは、被除数xに除数aの逆数を乗算したときの小数部{c・(1/a)}を取り出して、それに除数aを乗算して得られる整数部として算出することができる。この剰余算出手法を乗算法と称する。   Further, the remainder calculation is performed when the quotient of the dividend x (integer) by the divisor a (integer) is b (integer) and the remainder is c (integer), and the remainder c is obtained by multiplying the dividend x by the reciprocal of the divisor a. Can be calculated as an integer part obtained by taking out the decimal part {c · (1 / a)} and multiplying it by the divisor a. This remainder calculation method is called a multiplication method.

乗算法は以下の数式の変形によっても説明される。被除数x(整数)の除数a(整数)による商をb(整数)、剰余をc(整数)としたとき、以下の式が成立する。
x=a・b+c
上式の右辺をaでくくると、
x=a・{b+c・(1/a)}
となり、さらに変形すると、
x/a=b+c・(1/a)
となる。
The multiplication method is also explained by a modification of the following mathematical formula. When the quotient of the dividend x (integer) by the divisor a (integer) is b (integer) and the remainder is c (integer), the following equation is established.
x = a · b + c
When the right side of the above formula is wrapped with a,
x = a · {b + c · (1 / a)}
And when further deformed,
x / a = b + c · (1 / a)
It becomes.

ここで、
a>c
であるから、
c・(1/a)<1
である。つまり{c・(1/a)}は、被除数xに除数aの逆数を乗算したときの演算結果の小数部となる。
here,
a> c
Because
c · (1 / a) <1
It is. That is, {c · (1 / a)} is a decimal part of the calculation result when the dividend x is multiplied by the reciprocal of the divisor a.

本発明に関連する先行技術文献として、乗算法による剰余演算を行う演算処理装置に関して下記の特許文献1に記載されている。
特開8−202534号公報
As a prior art document related to the present invention, an arithmetic processing apparatus that performs a remainder operation by a multiplication method is described in Patent Document 1 below.
JP-A-8-202534

従来の剰余算出法は、全ての入力値(除数及び被除数)の範囲に亘って、剰余値として精度の高い出力値が得られる演算法であり、減算法では、除数>被除数となるまで、除数による被除数からの減算を繰り返すことから、被除数と除数の差が大きいほど、減算と判定の処理のループ回数が増大する。このため処理量が非常に大きくなるという問題がある。   The conventional remainder calculation method is an arithmetic method in which a highly accurate output value is obtained as a remainder value over the range of all input values (divisor and dividend). In the subtraction method, the divisor is divided until divisor> dividend. As the difference between the dividend and the divisor is larger, the number of loops for the subtraction and determination process increases. Therefore, there is a problem that the processing amount becomes very large.

また、従来、乗算法が採用されなかったのは、除数の逆数が小数となることで、その後の演算が浮動小数点演算となり、小数部と整数部の分離を行う処理量が多大なものとなるという問題があったためである。本発明は、乗算法を用い、範囲の限定された入力値に対して、剰余算出の処理量を削減することを目的とする。   Conventionally, the multiplication method has not been adopted because the reciprocal of the divisor becomes a decimal, and the subsequent operation becomes a floating-point operation, resulting in a large amount of processing for separating the decimal part and the integer part. This is because there was a problem. An object of the present invention is to reduce a processing amount of remainder calculation for an input value having a limited range by using a multiplication method.

本発明の剰余演算処理装置は、(1)範囲が制限された整数を被除数とし、固定値の整数を除数とした場合の剰余を算出する剰余演算処理装置において、被除数に、固定小数点表示の除数の逆数を乗算する逆数乗算手段と、該逆数乗算手段による固定小数点表示の乗算結果の小数部を抽出する小数部抽出手段と、該小数部抽出手段による固定小数点表示の抽出結果に前記除数を乗算する除数乗算手段と、該除数乗算手段による固定小数点表示の乗算結果から整数部を剰余算出結果として取り出す整数部抽出手段と、を備えたものである。   The remainder calculation processing device of the present invention is (1) a remainder calculation processing device for calculating a remainder when a range-limited integer is used as a dividend and a fixed-value integer is used as a divisor. A reciprocal multiplication means for multiplying the reciprocal number, a fractional part extraction means for extracting a fractional part of the multiplication result of the fixed-point display by the reciprocal multiplication means, and a result obtained by multiplying the extraction result of the fixed-point display by the decimal part extraction means by the divisor A divisor multiplication unit for performing the operation, and an integer part extraction unit for extracting an integer part as a remainder calculation result from the multiplication result of the fixed-point display by the divisor multiplication unit.

また、(2)前記逆数乗算手段は、前記固定小数点表示の除数の逆数の有効表示桁の最下位桁に1を加算した値を前記被除数に乗じることを特徴とするものである。
また、(3)前記小数部抽出手段は、前記逆数乗算手段の乗算結果の小数部を、所定ビット数の論理符号との論理積演算により抽出する手段を備え、前記整数部抽出手段は、前記除数乗算手段による固定小数点表示の乗算結果の格納位置を、該固定小数点表示の小数桁数分シフトさせ、整数部のみを格納部に残して取り出すことを特徴とするものである。
(2) The reciprocal multiplication means is characterized in that the dividend is multiplied by a value obtained by adding 1 to the least significant digit of the effective display digit of the reciprocal of the divisor of the fixed-point display.
(3) The decimal part extraction means includes means for extracting the decimal part of the multiplication result of the reciprocal multiplication means by a logical product operation with a logical code having a predetermined number of bits, and the integer part extraction means includes: The storage position of the multiplication result of the fixed-point display by the divisor multiplication means is shifted by the number of decimal digits of the fixed-point display, and only the integer part is left in the storage unit and extracted.

また、本発明の剰余演算処理方法は、(4)範囲が制限された整数を被除数とし、固定値の整数を除数とした場合の剰余を算出する剰余演算処理方法であって、被除数に、固定小数点表示の除数の逆数を乗算し、該逆数乗算による固定小数点表示の乗算結果の小数部を抽出し、該小数部抽出による固定小数点表示の抽出結果に前記除数を乗算し、該除数乗算による固定小数点表示の乗算結果から整数部を剰余算出結果として取り出す剰余演算処理方法において、前記除数の逆数の固定小数点表示として最適な小数点位置を決定するために、小数点表示桁数を順次増大させながら小数点表示桁数を設定するステップと、前記剰余演算処理による剰余算出結果の良否を判定し、該剰余算出結果が良となる最小桁数を、前記固定小数点表示の小数点表示桁数と決定するステップとを有するものである。   The remainder calculation processing method of the present invention is (4) a remainder calculation processing method for calculating a remainder when a range-limited integer is a dividend and a fixed-value integer is a divisor, and is fixed to the dividend. Multiply the reciprocal of the divisor of the decimal point display, extract the decimal part of the multiplication result of the fixed point display by the reciprocal multiplication, multiply the extraction result of the fixed point display by the decimal part extraction by the divisor, and fix by the divisor multiplication In the remainder calculation processing method that extracts the integer part from the multiplication result of the decimal point display as the remainder calculation result, in order to determine the optimal decimal point position as the fixed decimal point display of the reciprocal of the divisor, the decimal point display is sequentially increased to increase the decimal point display. A step of setting the number of digits; whether the remainder calculation result by the remainder calculation process is good or bad; and the minimum number of digits for which the remainder calculation result is good is the decimal point of the fixed-point display And has a determining and 示桁 number.

また、(5)前記逆数乗算による固定小数点表示の乗算結果の小数部を抽出する際に、抽出する小数部の桁数を決定するために、抽出する小数部の桁数を順次増大させながら小数点抽出桁数を設定するステップと、前記剰余演算処理による剰余算出結果の良否を判定し、該剰余算出結果が良となる最小桁数を、前記抽出する小数部の桁数と決定するステップとを有するものである。   (5) When extracting the fractional part of the multiplication result of the fixed-point display by the reciprocal multiplication, the decimal point is sequentially increased in order to determine the number of digits of the fractional part to be extracted. A step of setting the number of extracted digits; and a step of determining whether the remainder calculation result by the remainder calculation process is good or not, and determining a minimum number of digits for which the remainder calculation result is good as the number of digits of the fractional part to be extracted. I have it.

本発明によれば、乗算法で剰余を算出する際に、除数の逆数を固定小数点表示にすることにより、その後の演算処理を全て固定小数点表示で扱い、DSP等のプロセッサにおいて処理量の負担が少ない命令(シフト演算、マスク)を使用することができ、処理量を削減することができる。また、従来の減算法のように、除数及び被除数の値に依存して処理量に差異が生じることもない。   According to the present invention, when the remainder is calculated by the multiplication method, the reciprocal of the divisor is displayed in a fixed-point display, so that all subsequent arithmetic processing is handled in a fixed-point display, and the processing load is burdened on a processor such as a DSP. A small number of instructions (shift operation, mask) can be used, and the amount of processing can be reduced. Further, unlike the conventional subtraction method, there is no difference in processing amount depending on the value of the divisor and the dividend.

また、本発明による乗算法は、固定小数点表示の除数の逆数の有効桁の最下位桁に1を加算することにより、その後の演算結果の有効桁数未満の小数部の切捨てに伴う剰余演算誤差を補正することができる。また、固定小数点表示の乗算結果の小数部を抽出する際に、所定ビット数の論理符号との論理積演算により、少ないビット幅で小数部を取り出すことにより、小数部と除数との乗算規模(乗算に使用するビット幅)を小さくすることができる。なお、取り出す小数部のビット幅は、事前に精度を保証し得る限界のビット幅を算出しておく。   In addition, the multiplication method according to the present invention adds 1 to the least significant digit of the reciprocal of the reciprocal of the divisor of the fixed-point display, thereby causing a remainder operation error due to the truncation of the fractional part less than the effective number of the subsequent operation results. Can be corrected. Further, when extracting the decimal part of the multiplication result in the fixed-point display, the multiplication part of the decimal part and the divisor is obtained by extracting the decimal part with a small bit width by logical product operation with a logical code having a predetermined number of bits. (Bit width used for multiplication) can be reduced. The bit width of the fractional part to be extracted is calculated in advance as a limit bit width that can guarantee accuracy.

図1に本発明の固定小数点表示(Qフォーマット)による乗算法の剰余演算のフローを示す。入力(Input)処理は、処理部100における固定小数点表示(Qフォーマット)の除数Yの逆数(1/Y)の入力処理、処理部103における被除数Xの入力処理、及び処理部107における除数Yの入力処理である。   FIG. 1 shows a flow of the remainder calculation of the multiplication method by the fixed point display (Q format) of the present invention. Input processing includes input processing of the reciprocal (1 / Y) of the divisor Y of the fixed-point display (Q format) in the processing unit 100, input processing of the dividend X in the processing unit 103, and divisor Y in the processing unit 107. Input processing.

除数Y及び被除数Xは共に整数で、除数Yは固定値、被除数Xは制限された範囲内の任意の値とする。除数Yの逆数を表す際の固定小数点表示(Qフォーマット)の小数点位置は、事前にプログラムによって決定しておく。図1では固定小数点位置を「△」の記号で示している。   Both the divisor Y and the dividend X are integers, the divisor Y is a fixed value, and the dividend X is an arbitrary value within a limited range. The decimal point position of the fixed-point display (Q format) when expressing the reciprocal of the divisor Y is determined in advance by a program. In FIG. 1, the fixed point position is indicated by a symbol “Δ”.

ここでは具体例として、Q6フォーマット(小数点位置が第6桁目のビット位置(bit#6)となる固定小数点表示)とした場合の剰余の算出について説明する。まず、被除数X及び除数Yとして、最終的な剰余演算結果の誤差を補正するために、有効表示桁の最下位ビットが‘1’で他のビットが‘0’の値、即ち‘1’を、固定小数点表示(Qフォーマット)の除数Yの逆数に加算する。   Here, as a specific example, the calculation of the remainder in the Q6 format (fixed decimal point display where the decimal point position is the sixth digit bit position (bit # 6)) will be described. First, as the dividend X and the divisor Y, in order to correct the error of the final remainder calculation result, the least significant bit of the effective display digit is “1” and the other bits are “0”, that is, “1”. And added to the reciprocal of the divisor Y in the fixed-point display (Q format).

即ち図1に示すように、処理部100において入力された除数の逆数(1/Y)と、処理部101により格納された最下位ビットが‘1’で他のビットが‘0’の値とを、処理部102により加算する。図1に示す具体例ではQ6フォーマットの固定小数点表示であるとすると、処理部100において除数Yの逆数に2を乗算して小数点の位置を6桁目に移動させた数値を入力し、該数値に処理部101の数値‘1’を加算する。式で示すと以下のとおりである。
{(1/Y)・2}+1
That is, as shown in FIG. 1, the reciprocal (1 / Y) of the divisor input in the processing unit 100, the least significant bit stored by the processing unit 101 is “1”, and the other bits are “0”. Are added by the processing unit 102. When a Q6 format of a fixed-point representation in the embodiment shown in FIG. 1, by multiplying the 2 6 to the reciprocal of the divisor Y type a number of moving the position of the decimal point position 6 in the processing unit 100, the The numerical value “1” of the processing unit 101 is added to the numerical value. This is expressed by the following formula.
{(1 / Y) · 2 6 } +1

次に、先の処理部102の加算結果(除数Yの逆数+1)と、被除数Xとを乗算する。即ち図1において、処理部102の出力データと、処理部103により入力された被除数Xとを処理部104において乗算する。式で示すと以下のとおりである。
[{(1/Y)・2}+1]・X
なお、(除数Yの逆数+1)を固定小数点表示(Qフォーマット)としているため、処理部104での被除数Xとの乗算は整数乗算となる。
Next, the addition result (the reciprocal of the divisor Y + 1) of the previous processing unit 102 is multiplied by the dividend X. That is, in FIG. 1, the processing unit 104 multiplies the output data of the processing unit 102 and the dividend X input by the processing unit 103. This is expressed by the following formula.
[{(1 / Y) · 2 6 } +1] · X
Since (reciprocal number of divisor Y + 1) is fixed point display (Q format), multiplication with dividend X in processing unit 104 is integer multiplication.

次に、整数乗算の結果から固定小数点表示(Qフォーマット)における小数部分を抜き出す。図1において、前述の処理部104での整数乗算結果は処理部105に格納され、処理部105において、斜線部を施した小数部を抜き出す。小数部を抜き出す処理において、小数点位置以下の全桁を抜き出す場合は、処理部105の出力データを、‘0…111111(2)’=‘0…3f(16)’のビット列でマスクすることにより抽出されるが、実用上、精度に問題がなければ、小数点以下第1桁のみを抜き出すこととし、‘0…100000(2)’=‘0…20(16)’のビット列でマスクする構成とすることもできる。式で示すと以下のとおりである。
[[{(1/Y)・2}+1]・X]&‘0…20(16)’
Next, the decimal part in the fixed-point display (Q format) is extracted from the result of the integer multiplication. In FIG. 1, the result of integer multiplication in the processing unit 104 described above is stored in the processing unit 105, and the processing unit 105 extracts a fractional part with a hatched portion. In the process of extracting the fractional part, when extracting all the digits after the decimal point position, the output data of the processing unit 105 is masked with a bit string of “0... 111111 (2)” = “0... 3f (16)”. If there is no problem in accuracy in practice, only the first digit after the decimal point is extracted and masked with a bit string of '0 ... 100,000 (2)' = '0 ... 20 (16)' You can also This is expressed by the following formula.
[[{(1 / Y) · 2 6 } +1] · X] &'0 ... 20 (16)'

なお、‘0…111111(2)’等の(2)は2進数表示であることを意味し、‘0…3f(16)’等の(16)は16進数表示であることを意味している。また、図1においては、処理部105に格納された整数乗算結果に対してマスキングにより小数部を抜き出し、抜き出した小数部は図1に示す処理部106に格納される。   Note that (2) such as '0 ... 111111 (2)' means binary display, and (16) such as '0 ... 3f (16)' means hexadecimal display. Yes. Further, in FIG. 1, a fractional part is extracted by masking the integer multiplication result stored in the processing unit 105, and the extracted decimal part is stored in the processing unit 106 shown in FIG.

次に、抜き出された小数部に除数Yを乗算(整数乗算)する。図1では、処理部106の小数部と、処理部107に入力された除数Yとを処理部108に入力して乗算する。式で示すと以下のとおりである。
[[[{(1/Y)・2}+1]・X]&‘0…20(16)’]・Y
Next, the extracted decimal part is multiplied by a divisor Y (integer multiplication). In FIG. 1, the decimal part of the processing unit 106 and the divisor Y input to the processing unit 107 are input to the processing unit 108 and multiplied. This is expressed by the following formula.
[[[{(1 / Y) · 2 6 } +1] · X] &'0 ... 20 (16)'] · Y

前述の、図1の処理部105,106における小数部の抜き出しの演算において、抜き出すビット数を制限してマスキングを行うことにより、抜き出された小数部の有効ビット数が少なくなり、該小数部と除数Yとを乗算する処理部108の回路規模を小さくすることができる。   In the above-described calculation of extracting the fractional part in the processing units 105 and 106 in FIG. 1, by performing masking by limiting the number of extracted bits, the number of effective bits of the extracted fractional part is reduced, and the decimal part is reduced. The circuit scale of the processing unit 108 that multiplies the divisor Y with the divisor Y can be reduced.

図4に処理部105,106での小数部を抜き出す演算の詳細を示す。同図において処理部401の格納データから小数部を取り出す際に、マスク処理に使用するビット列をテーブル404に示している。マスク処理に使用するビット列は、小数点以下の全桁を取り出すための‘1111…11(2)’のみに固定されるものではなく、剰余結果の精度が保たれるのであれば、テーブル404に示す何れかの桁までの‘1’のビット列を用い、該ビット列を処理部402に設定し、該ビット列によりマスク処理を行い、必要な桁のみの小数部を処理部403に取り出す。なお、図4において、処理部401及び403は、それぞれ、図1の処理部105及び106に相当する。   FIG. 4 shows details of the calculation for extracting the decimal part in the processing units 105 and 106. In the figure, a bit string used for mask processing when a fractional part is extracted from stored data of the processing unit 401 is shown in a table 404. The bit string used for the mask processing is not fixed to only “1111... 11 (2)” for extracting all the digits after the decimal point. If the precision of the remainder result is maintained, the bit string is shown in the table 404. A bit string of “1” up to any digit is used, the bit string is set in the processing unit 402, mask processing is performed using the bit string, and a decimal part of only a necessary digit is extracted to the processing unit 403. In FIG. 4, processing units 401 and 403 correspond to the processing units 105 and 106 in FIG. 1, respectively.

最後に、固定小数点表示(Qフォーマット)の小数点位置分、演算結果をシフトさせて整数部を取り出し、この結果が求める剰余の値となる。図1では、処理部108の乗算結果が処理部109に格納され、処理部109に格納されたデータを6ビット(Q6フォーマットの実施例であるため)右へシフトさせて整数部のみを処理部110に取り出す。図1に示す処理部110に取り出された演算結果が求める剰余である。式で示すと以下のとおりである。
[[[[{(1/Y)・2}+1]・X]&‘0…20(16)’]・Y]>>6
ここで、「>>6」は、データを6ビット右へシフトさせることを表している。
Finally, the operation result is shifted by the decimal point position in the fixed-point display (Q format) to extract the integer part, and this result is the remainder value to be obtained. In FIG. 1, the multiplication result of the processing unit 108 is stored in the processing unit 109, and the data stored in the processing unit 109 is shifted to the right by 6 bits (because this is an example of the Q6 format), and only the integer part is processed. Take out to 110. The calculation result extracted by the processing unit 110 shown in FIG. This is expressed by the following formula.
[[[[{(1 / Y) · 2 6 } +1] · X] &'0 ... 20 (16)'] · Y] >> 6
Here, “>> 6” represents shifting data to the right by 6 bits.

次に、乗算法による剰余演算の誤差補正について説明する。乗算法による剰余演算の誤差は、固定小数点表示(Qフォーマット)の除数Yの逆数の格納において、表示可能(レジスタ等に格納可能)な小数部分より小さい桁の小数部分が切り捨てられることにより生じ、また、図1に示す処理部109のデータを右にシフトして整数部を取り出す際に、処理部109に格納されていたデータの小数部分が切り捨てられることにより誤差を生じる。   Next, error correction of the remainder calculation by the multiplication method will be described. The error of the remainder calculation by the multiplication method is caused by truncation of the decimal part of the digit smaller than the decimal part that can be displayed (stored in a register or the like) in storing the reciprocal of the divisor Y in the fixed-point display (Q format), Further, when the data of the processing unit 109 shown in FIG. 1 is shifted to the right and the integer part is extracted, an error occurs due to the fractional part of the data stored in the processing unit 109 being truncated.

Qnフォーマットの剰余演算(X%Y)において、剰余の真値をRtru、乗算法によって算出される剰余の値をRCalとすると、RCalは以下の式のとおりとなる。
Cal=[[[[{(1/Y)・2}+1]・X]&(2−1)]・Y]>>n
Qn format of remainder operation in (X% Y), the true value of the remainder R tru, the value of the remainder calculated by multiplying method When R Cal, R Cal becomes as the following equation.
R Cal = [[[[[{(1 / Y) · 2 n } +1] · X] & (2 n −1)] · Y] >> n

処理部100に入力されたQnフォーマットの除数の逆数P0=(1/Y)・2は、非表示部分が切り捨てられることから、除数Yの逆数の真値Ptruとの間に、Qnフォーマットの表示部分の最下位桁以下に‘1’未満の誤差を生じる。この誤差をΔpは、
0<Δp<1
であり、
tru−1<P0<Ptru
である(図2(a)参照)。
Reciprocal P0 = (1 / Y) · 2 n of Qn format divisor input to the processing unit 100, since the non-display portion is truncated, between the true value P tru of the reciprocal of the divisor Y, Qn format An error of less than “1” is generated below the least significant digit of the display part. Δp is the error
0 <Δp <1
And
P true -1 <P0 <P true
(See FIG. 2A).

Qnフォーマットの除数の逆数P0=(1/Y)・2に、Qnフォーマットの最下位桁を‘1’とした数値を加算した値P1=(1/Y)・2+1は、除数Yの逆数の真値Ptruより大となり、かつ、除数Yの逆数の真値Ptruとの間の誤差は、Qnフォーマットの表示部分の最下位桁の数値の‘1’未満の誤差となる。この誤差は(1−Δp)であり、
0<1−Δp<1
tru<P1<Ptru+1
である(図2(a)参照)。
A value obtained by adding a numerical value in which the least significant digit of the Qn format is set to “1” to the reciprocal number P0 = (1 / Y) · 2 n of the Qn format P1 = (1 / Y) · 2 n +1 is a divisor Y large next than the true value P tru of inverse and the error between the true value P tru of the reciprocal of the divisor Y is a error in the least significant digit of the numeric '1' less than the visible portion of the Qn format. This error is (1−Δp),
0 <1-Δp <1
P true <P1 <P true +1
(See FIG. 2A).

次に、被除数Xを前述の値P1に乗算する。その値をP2とすると、
P2=[{(1/Y)・2}+1]・X
このときの誤差(1−Δp)・Xが以下の範囲となるよう、X及びnの値を制限する。
0<(1−Δp)・X<2 (図2(b)参照)
上式を満たすよう被除数Xを制限し、又は要求される被除数Xの大きさに合わせて固定小数点の小数部の桁数nを決定する。
Next, the dividend X is multiplied by the aforementioned value P1. If the value is P2,
P2 = [{(1 / Y) · 2 n } +1] · X
The values of X and n are limited so that the error (1-Δp) · X at this time falls within the following range.
0 <(1-Δp) · X <2 n (see FIG. 2B)
The dividend X is limited so as to satisfy the above formula, or the number of digits n of the decimal part of the fixed point is determined according to the required size of the dividend X.

次に上記P2の演算結果から小数部を取り出す。この小数部をP3とする。P3は以下の式のとおりである。
P3=[[{(1/Y)・2}+1]・X]&(2−1) (図2(c)参照)
このときの誤差も、
0<(1−Δp)・X<2
となる。
Next, the decimal part is extracted from the calculation result of P2. Let this fractional part be P3. P3 is as follows.
P3 = [[{(1 / Y) · 2 n } +1] · X] & (2 n −1) (see FIG. 2C)
The error at this time is also
0 <(1-Δp) · X <2 n
It becomes.

次に上記の演算結果P3に除数Yを乗算する。その乗算結果をP4とする。
P4=[[[{(1/Y)・2}+1]・X]&(2−1)]・Y
このときの誤差(1−Δp)・X・Yが以下の範囲となるように制限する。
0<(1−Δp)・X・Y<2
即ち、上式を満たすように除数Yを制限する(図2(d)参照)。
Next, the operation result P3 is multiplied by the divisor Y. The multiplication result is P4.
P4 = [[[[{(1 / Y) · 2 n } +1] · X] & (2 n −1)] · Y
The error (1-Δp) · X · Y is limited to the following range.
0 <(1-Δp) · X · Y <2 n
That is, the divisor Y is limited so as to satisfy the above equation (see FIG. 2D).

最後に、上記演算結果P4をnビット右にシフトして整数部を取り出し、該整数部を剰余RCalとして出力する。ここで、上記演算結果P4をnビット右にシフトすることは、該P4を2で除してその小数部を切り捨てる処理と等価である。該P4を2で除したときの演算結果をP5とすると、演算結果P5は、以下のとおりとなる。
P5=[[[[{(1/Y)・2}+1]・X]&(2−1)]・Y]/2
Finally, the operation result P4 is shifted n bits to the right to extract the integer part, and the integer part is output as the remainder R Cal . Here, shifting the calculation result P4 to the right by n bits is equivalent to a process of dividing the P4 by 2n and truncating the decimal part. If the calculation result when P4 is divided by 2n is P5, the calculation result P5 is as follows.
P5 = [[[[[{(1 / Y) · 2 n } +1] · X] & (2 n −1)] · Y] / 2 n

このときの誤差は以下で表される。
0<{(1−Δp)・X・Y}/2<1 (図2(e)参照)
このように、上記演算結果P5の誤差は1未満で有ることから、その小数部を切り捨てて得られる剰余演算結果RCalは、正確な剰余の値Rtruと等しくなる。
The error at this time is expressed as follows.
0 <{(1-Δp) · X · Y} / 2 n <1 (see FIG. 2 (e))
As described above, since the error of the calculation result P5 is less than 1, the remainder calculation result R Cal obtained by rounding down the decimal part becomes equal to the exact remainder value R true .

次にQフォーマットの算出について説明する。前述の乗算法により剰余を算出するためには、まず、除数Yの逆数の固定小数点表示(Qフォーマット)における小数点位置を決定しなければならない。また、乗算法による剰余算出において、被除数Xと(除数Yの逆数+1)とを乗算し、その乗算結果から小数部を抜き出す際のビットの制限(マスクの値)についても決定しなければならない。   Next, calculation of the Q format will be described. In order to calculate the remainder by the multiplication method described above, first, the decimal point position in the fixed point display (Q format) of the reciprocal of the divisor Y must be determined. Further, in the remainder calculation by the multiplication method, the dividend X and (reciprocal number of the divisor Y + 1) are multiplied, and the bit limit (mask value) when extracting the fractional part from the multiplication result must also be determined.

固定小数点表示(Qフォーマット)とマスクの値を決定するプログラムについて、Q6フォーマット(LSBをbit#0とするとbit#6が小数点位置)を初期値とするQフォーマットとマスクの値の決定の処理について以下に説明する。また、図3にそのフローチャートを示す。   Regarding a program for determining a fixed-point display (Q format) and a mask value, a process for determining a Q format and a mask value with an initial value in Q6 format (when LSB is bit # 0, bit # 6 is the decimal point position) This will be described below. FIG. 3 shows a flowchart thereof.

最初に、被除数Xの最小値(Min)と最大値(Max)、除数Y(固定値)、及びQフォーマットの最小値(Min;この例の場合6)を入力する(ステップ300)。次に、入力されたQフォーマットの最小値(Min;6)をQフォーマットの初期値に設定する(ステップ301)。以下の処理で、Qフォーマットの値を徐々に増大させながら演算を繰り返し、Qフォーマットとマスクの値を決定する。   First, the minimum value (Min) and maximum value (Max) of the dividend X, the divisor Y (fixed value), and the minimum value (Min; 6 in this example) of the Q format are input (step 300). Next, the input minimum value (Min; 6) of the Q format is set as the initial value of the Q format (step 301). In the following processing, the calculation is repeated while gradually increasing the Q format value, and the Q format and the mask value are determined.

次に、小数部取り出し桁を決定するマスクの値を設定する。初期値は、小数点以下の最上位桁(最も左のビット)のみを‘1’とした値、即ち‘100000(2)’とする(ステップ302)。先に設定したQフォーマットの値(6)と、今設定した小数部取り出し用マスク値とを用い、ステップ303において、被除数Xの最小値(Min)から最大値(Max)までの範囲で順々にインクリメントさせながら設定される被除数Xに対して、ステップ300で設定された除数Yによる剰余を算出し、その算出結果と従来の演算法(例えば、引き算法)による剰余の結果とが一致するか否かをステップ304において判定する。   Next, a mask value for determining the decimal place extraction digit is set. The initial value is a value in which only the most significant digit (leftmost bit) after the decimal point is ‘1’, that is, ‘100000 (2)’ (step 302). Using the previously set Q format value (6) and the fractional part extraction mask value set in step 303, in step 303, in order from the minimum value (Min) to the maximum value (Max) of the dividend X. For the dividend X set while being incremented to, calculate the remainder by the divisor Y set in step 300, and whether the calculation result matches the result of the remainder by the conventional arithmetic method (for example, subtraction method) It is determined in step 304 whether or not.

上記ステップ304の判定において、1つでも一致しない被除数Xが存在すれば、被除数Xの全範囲について演算を終えることなく、剰余の算出・判定の処理ステップを抜け出し、小数部取り出し用のマスクの値がオール‘1’か否かを判定し(ステップ305)、オール‘1’でなければステップ302に戻り、小数部取り出し用のマスクの値として下位1桁分‘1’のビットを増やして再度設定し、ステップ303からの剰余の算出・判定を再開する。   In the determination of step 304, if there is even one dividend X that does not match, the remainder calculation / determination processing step is exited without completing the calculation for the entire range of the dividend X, and the mask value for fractional part extraction is set. Is all '1' (step 305), if not all '1', the process returns to step 302 and the bit of '1' is incremented by the lower one digit as the mask value for extracting the fractional part and again. Then, the calculation / determination of the remainder from step 303 is resumed.

マスクの値としては、図4の404のテーブルに示すように、‘1’の値を有する桁数を順次増やしながら剰余を算出し、剰余の精度が保証される時点の値を使用することになる。ステップ302〜304の処理を繰り返し行い、マスクのビットに全て‘1’が立ち、マスク値が‘11…111(2)’となり、そのような場合となっても従来の演算法による剰余と本乗算法による剰余とが一致しないとき、Qフォーマットが最大に達しているか否かを判定し(ステップ307)、Qフォーマットが未だ最大に達していなければ、ステップ301に戻ってQフォーマットの小数点位置を1ビット左にずらして再度設定し、ステップ302でQフォーマットに合わせてマスクの値も再度設定し、ステップ303及び304の剰余の算出・判定を繰り返す。   As the mask value, as shown in the table 404 in FIG. 4, the remainder is calculated while sequentially increasing the number of digits having a value of “1”, and the value at the time when the precision of the remainder is guaranteed is used. Become. The processing of steps 302 to 304 is repeated, and all the bits of the mask are set to “1”, and the mask value becomes “11... 111 (2)”. When the remainder by the multiplication method does not match, it is determined whether or not the Q format has reached the maximum (step 307). If the Q format has not yet reached the maximum, the process returns to step 301 to set the decimal point position of the Q format. Shift to the left by 1 bit and set again. In step 302, the mask value is set again in accordance with the Q format, and the calculation and determination of the remainder in steps 303 and 304 are repeated.

図5にQフォーマットの設定の様態を示している。同図において下方のものほどQフォーマットの値の大きい(小数点以下の表示部分の大きい)ものを示している。Qフォーマットの設定は図5に示すように小数点以下の表示部分を徐々に増やしながら、剰余の精度が保証されるか否かを確認し、精度が保証されることが確認された時点のQフォーマットを採用することになる。   FIG. 5 shows how the Q format is set. In the figure, the lower one shows a larger Q format value (larger display part after the decimal point). As shown in FIG. 5, the Q format is set by gradually increasing the display part after the decimal point to check whether the precision of the remainder is guaranteed, and when the accuracy is confirmed, the Q format is confirmed. Will be adopted.

前述の実施例では、Q6フォーマットから開始したので、このQ6フォーマットで精度が保証されない場合には、図3のステップ301においてQフォーマットとして1つ大きいQ7フォーマットに設定し直し、ステップ302でマスクの値を‘1000000(2)’と再設定して、再度剰余の演算・判定を開始する。   In the above-described embodiment, since the Q6 format is used, if the accuracy is not guaranteed with this Q6 format, the Q format is set to one larger as the Q format at step 301 in FIG. Is reset to '1000000 (2)', and the remainder calculation / determination is started again.

ステップ301〜ステップ304を繰り返し、何れの判定条件においても、従来の演算法の結果と本発明による乗算法の剰余の結果とが一致せず、Qフォーマットが最大値に達した場合は、“NG”と出力する(ステップ308)。また、ステップ304の判定において剰余結果が一致し、かつ、ステップ306において被除数Xの設定値が最大値(Max)に達したことを確認した場合は、ステップ304の剰余算出・判定の処理を終了し、剰余結果の一致が確認された時点でのQフォーマット及びマスクの値を、使用するQフォーマット及びマスクの決定値として出力する(ステップ309)。   Steps 301 to 304 are repeated. If any of the determination conditions does not match the result of the conventional arithmetic method and the result of the remainder of the multiplication method according to the present invention and the Q format reaches the maximum value, "Is output (step 308). If it is confirmed in step 304 that the remainder results match and the setting value of dividend X has reached the maximum value (Max) in step 306, the remainder calculation / determination process in step 304 is terminated. Then, the Q format and the mask value at the time when the remainder results are confirmed to match are output as the Q format and mask decision values to be used (step 309).

なお、前述した数式における記号の意味内容の一覧を以下に記す。
x+y:加算
x−y:減算
x・y:乗算
x/y:除算
x%y:剰余
x&y:論理積
x>>y:シフト演算
:xのy乗
xxxxxx(2):2進数表示
xxxxxx(16):16進数表示
A list of the meaning contents of the symbols in the above mathematical formula is shown below.
x + y: addition xy: subtraction x · y: multiplication x / y: division x% y: remainder x & y: logical product x >> y: shift operation xy : x to the power of y xxxxxxxx (2): binary number display xxxxxxxx (16): Hexadecimal display

本発明の固定小数点表示による乗算法の剰余演算のフローを示す図である。It is a figure which shows the flow of the remainder calculation of the multiplication method by the fixed point display of this invention. 乗算法による剰余算出において生じる誤差を示す図である。It is a figure which shows the error which arises in the remainder calculation by a multiplication method. Qフォーマットとマスクの値を決定するフローを示す図である。It is a figure which shows the flow which determines the value of Q format and a mask. 本発明における小数部を抜き出す演算処理の詳細を示す図である。It is a figure which shows the detail of the arithmetic processing which extracts the decimal part in this invention. 本発明におけるQフォーマットの設定の態様を示す図である。It is a figure which shows the aspect of the setting of Q format in this invention.

符号の説明Explanation of symbols

100 固定小数点表示(Qフォーマット)の除数Yの逆数の入力値
101 固定小数点表示(Qフォーマット)の剰余演算の誤差補正の加算値‘1’
102 100と101との加算
103 被除数Xの入力値
104 102と103との乗算
105 104の乗算結果
106 105から小数部を取り出した結果
107 除数Yの入力値
108 106と107との乗算
109 108の乗算結果
110 109の整数部分を取り出した結果
100 Input value of reciprocal of divisor Y in fixed-point display (Q format) 101 Addition value “1” for error correction of remainder calculation in fixed-point display (Q format)
102 Addition of 100 and 101 103 Input value of dividend X 104 Multiplication of 102 and 103 105 Multiplication result of 104 106 Result of extraction of decimal part from 105 107 Input value of divisor Y 108 Multiplication of 106 and 107 109 Multiplication result 110 The result of extracting the integer part of 109

Claims (5)

範囲が制限された整数を被除数とし、固定値の整数を除数とした場合の剰余を算出する剰余演算処理装置において、
被除数に、固定小数点表示の除数の逆数を乗算する逆数乗算手段と、該逆数乗算手段による固定小数点表示の乗算結果の小数部を抽出する小数部抽出手段と、該小数部抽出手段による固定小数点表示の抽出結果に前記除数を乗算する除数乗算手段と、該除数乗算手段による固定小数点表示の乗算結果から整数部を剰余算出結果として取り出す整数部抽出手段と、を備えたことを特徴とする剰余演算処理装置。
In a remainder calculation processing device that calculates a remainder when a range-limited integer is a dividend and a fixed integer is a divisor,
Reciprocal multiplication means for multiplying the dividend by the reciprocal of the divisor of the fixed-point display, decimal part extraction means for extracting the fraction part of the multiplication result of the fixed-point display by the reciprocal multiplication means, and fixed-point display by the decimal part extraction means And a divisor multiplication unit that multiplies the extraction result by the divisor, and an integer part extraction unit that extracts an integer part from the multiplication result of the fixed-point display by the divisor multiplication unit as a remainder calculation result. Processing equipment.
前記逆数乗算手段は、前記固定小数点表示の除数の逆数の有効表示桁の最下位桁に1を加算した値を前記被除数に乗じることを特徴とする請求項1に記載の剰余演算処理装置。   2. The remainder calculation processing apparatus according to claim 1, wherein the reciprocal multiplication means multiplies the dividend by a value obtained by adding 1 to the least significant digit of the effective display digit of the reciprocal of the divisor of the fixed-point display. 前記小数部抽出手段は、前記逆数乗算手段の乗算結果の小数部を、所定ビット数の論理符号との論理積演算により抽出する手段を備え、
前記整数部抽出手段は、前記除数乗算手段による固定小数点表示の乗算結果の格納位置を、該固定小数点表示の小数桁数分シフトさせ、整数部のみを格納部に残して取り出すことを特徴とする請求項1に記載の剰余演算処理装置。
The fraction part extraction means comprises means for extracting the fraction part of the multiplication result of the reciprocal multiplication means by a logical product operation with a logical code having a predetermined number of bits,
The integer part extraction means shifts the storage position of the multiplication result of the fixed-point display by the divisor multiplication means by the number of decimal digits of the fixed-point display and takes out only the integer part in the storage part. The remainder calculation processing apparatus according to claim 1.
範囲が制限された整数を被除数とし、固定値の整数を除数とした場合の剰余を算出する剰余演算処理方法であって、
被除数に、固定小数点表示の除数の逆数を乗算し、該逆数乗算による固定小数点表示の乗算結果の小数部を抽出し、該小数部抽出による固定小数点表示の抽出結果に前記除数を乗算し、該除数乗算による固定小数点表示の乗算結果から整数部を剰余算出結果として取り出す剰余演算処理方法において、
前記除数の逆数の固定小数点表示として最適な小数点位置を決定するために、小数点表示桁数を順次増大させながら小数点表示桁数を設定するステップと、前記剰余演算処理による剰余算出結果の良否を判定し、該剰余算出結果が良となる最小桁数を、前記固定小数点表示の小数点表示桁数と決定するステップとを有することを特徴とする剰余演算処理方法。
A residue calculation processing method for calculating a remainder when a range-limited integer is a dividend and a fixed-value integer is a divisor,
Multiplying the dividend by the reciprocal of the divisor of the fixed-point display, extracting the fractional part of the multiplication result of the fixed-point display by the reciprocal multiplication, multiplying the extraction result of the fixed-point display by the decimal part extraction by the divisor, In a residue calculation processing method for extracting an integer part as a remainder calculation result from a multiplication result of a fixed point display by divisor multiplication,
In order to determine the optimal decimal point position as the fixed-point display of the reciprocal of the divisor, the step of setting the decimal point display digits while sequentially increasing the decimal point display digits, and the quality of the residue calculation result by the residue calculation process is determined And determining the minimum number of digits for which the remainder calculation result is good as the number of decimal digits displayed in the fixed-point display.
範囲が制限された整数を被除数とし、固定値の整数を除数とした場合の剰余を算出する剰余演算処理方法であって、
被除数に、固定小数点表示の除数の逆数を乗算し、該逆数乗算による固定小数点表示の乗算結果の小数部を抽出し、該小数部抽出による固定小数点表示の抽出結果に前記除数を乗算し、該除数乗算による固定小数点表示の乗算結果から整数部を剰余算出結果として取り出す剰余演算処理方法において、
前記逆数乗算による固定小数点表示の乗算結果の小数部を抽出する際に、抽出する小数部の桁数を決定するために、抽出する小数部の桁数を順次増大させながら小数点抽出桁数を設定するステップと、前記剰余演算処理による剰余算出結果の良否を判定し、該剰余算出結果が良となる最小桁数を、前記抽出する小数部の桁数と決定するステップとを有することを特徴とする剰余演算処理方法。
A residue calculation processing method for calculating a remainder when a range-limited integer is a dividend and a fixed-value integer is a divisor,
Multiplying the dividend by the reciprocal of the divisor of the fixed-point display, extracting the fractional part of the multiplication result of the fixed-point display by the reciprocal multiplication, multiplying the extraction result of the fixed-point display by the decimal part extraction by the divisor, In a residue calculation processing method for extracting an integer part as a remainder calculation result from a multiplication result of a fixed point display by divisor multiplication,
When extracting the decimal part of the multiplication result of the fixed-point display by the reciprocal multiplication, in order to determine the number of digits of the fraction part to be extracted, the number of decimal points extracted is set while sequentially increasing the number of digits of the fraction part to be extracted. And determining whether the remainder calculation result by the remainder calculation process is good or not and determining the minimum number of digits for which the remainder calculation result is good as the number of digits of the fractional part to be extracted. Remainder calculation processing method.
JP2004201314A 2004-07-08 2004-07-08 Remainder calculation processor and remainder calculation processing method Withdrawn JP2006023974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004201314A JP2006023974A (en) 2004-07-08 2004-07-08 Remainder calculation processor and remainder calculation processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004201314A JP2006023974A (en) 2004-07-08 2004-07-08 Remainder calculation processor and remainder calculation processing method

Publications (1)

Publication Number Publication Date
JP2006023974A true JP2006023974A (en) 2006-01-26

Family

ID=35797204

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004201314A Withdrawn JP2006023974A (en) 2004-07-08 2004-07-08 Remainder calculation processor and remainder calculation processing method

Country Status (1)

Country Link
JP (1) JP2006023974A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232833A (en) * 2014-06-10 2015-12-24 本田技研工業株式会社 Floating-point arithmetic device, program, and arithmetic device
JP2020160704A (en) * 2019-03-26 2020-10-01 日本電産株式会社 Integer division device and motor control device
CN112805770A (en) * 2018-10-10 2021-05-14 日本电信电话株式会社 Secret right shift operation system, secret division operation system, methods thereof, secret calculation device, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232833A (en) * 2014-06-10 2015-12-24 本田技研工業株式会社 Floating-point arithmetic device, program, and arithmetic device
CN112805770A (en) * 2018-10-10 2021-05-14 日本电信电话株式会社 Secret right shift operation system, secret division operation system, methods thereof, secret calculation device, and program
CN112805770B (en) * 2018-10-10 2023-10-03 日本电信电话株式会社 Secret right shift operation system and method, secret division operation system and method, secret calculation device, and recording medium
JP2020160704A (en) * 2019-03-26 2020-10-01 日本電産株式会社 Integer division device and motor control device
JP7036075B2 (en) 2019-03-26 2022-03-15 日本電産株式会社 Integer divider and motor controller

Similar Documents

Publication Publication Date Title
CN105468331B (en) Independent floating point conversion unit
US8812575B2 (en) Decimal floating-point square-root unit using Newton-Raphson iterations
US8639737B2 (en) Method to compute an approximation to the reciprocal of the square root of a floating point number in IEEE format
US8751555B2 (en) Rounding unit for decimal floating-point division
US9047119B2 (en) Circular floating-point number generator and a circular floating-point number adder
CN111813371B (en) Floating point division operation method, system and readable medium for digital signal processing
US8868633B2 (en) Method and circuitry for square root determination
US9767073B2 (en) Arithmetic operation in a data processing system
JP2502836B2 (en) Preprocessing device for division circuit
TW200532552A (en) Methods and apparatus for performing mathematical operations using scaled integers
JP5966764B2 (en) Multiplier and multiplication method
JP2006023974A (en) Remainder calculation processor and remainder calculation processing method
JPH0687219B2 (en) Control method
JP2018097864A (en) Leading zero anticipation
US10353671B2 (en) Circuitry and method for performing division
JP4428778B2 (en) Arithmetic device, arithmetic method, and computing device
KR100974190B1 (en) Complex number multiplying method using floating point
JP2003223316A (en) Arithmetic processor
JP2004310432A (en) Arithmetic unit and program
JPH08249161A (en) Cubic root arithmetic unit
JP2004078886A (en) Floating point storing method and floating point operating device
JP2010033275A (en) Data processing method and data processor
CN112541582A (en) Arithmetic circuit
JP2022173719A (en) Arithmetic processing device and arithmetic method
JP2002344316A (en) Nonlinear quantizer and nonlinear quantizing method, nonlinear quantizing program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071002