JPH02247726A - System for deciding fast dyadic operation of decimal type data - Google Patents
System for deciding fast dyadic operation of decimal type dataInfo
- Publication number
- JPH02247726A JPH02247726A JP1069509A JP6950989A JPH02247726A JP H02247726 A JPH02247726 A JP H02247726A JP 1069509 A JP1069509 A JP 1069509A JP 6950989 A JP6950989 A JP 6950989A JP H02247726 A JPH02247726 A JP H02247726A
- Authority
- JP
- Japan
- Prior art keywords
- operand
- processing
- digits
- hardware
- significant digits
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 claims description 19
- 238000003672 processing method Methods 0.000 claims description 12
- 238000007689 inspection Methods 0.000 abstract 1
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、二項演算の処理方式に関し、特にハードウェ
アのもつ10進型データの演算命令では被演算数または
演算数の桁が大きく処理不可能な10進型データの高速
二項演算処理判定方式に関する。Detailed Description of the Invention (Field of Industrial Application) The present invention relates to a processing method for binary operations, and in particular, in the case of arithmetic instructions for decimal data in hardware, the number of digits of the operand or operand is large. This invention relates to a high-speed binary operation processing determination method for impossible decimal type data.
(従来の技術)
従来、ハードウェアのもつ10進型データの演算命令で
被演算数、または演算数の桁が大きいなめ処理不可能な
10進型データの二項演算は、全ての桁を処理対象とし
ハードウェア命令を組み合わせて演算処理を行っていた
。(Prior art) Conventionally, binary operations on decimal data that cannot be processed due to large digits of operands or operands using decimal data calculation instructions provided by hardware have been processed using all digits. Arithmetic processing was performed by combining target hardware instructions.
(発明が解決しようとする課題)
上述した従来の全ての桁を処理対象とする方式では、実
際にはハードウェアのもつ10進型データの演算命令が
使用できる場合であっても、被演算数と演算数の無効な
桁に対しても演算処理を行わなければならず、処理時間
がかかるという欠点がある。(Problems to be Solved by the Invention) In the conventional method described above that processes all digits, even if the hardware can actually use decimal type data operation instructions, the operand This method has the drawback of requiring arithmetic processing even for invalid digits of the arithmetic number, which takes a long processing time.
(課題を解決するための手段)
本発明による10進データの高速二項演算処理判定方式
は、指定された被演算数または演算数の桁が大きく、ハ
ードウェアのもつ10進型データの演算命令では処理で
きない10進型データの高速二項演算処理判定方式にお
いて、被演算数の有効桁を求める被演算数有効桁算出手
段と、演算数の有効桁を求める演算数有効桁算出手段と
、前記被演算数有効桁算出手段で求めた被演算数の有効
桁と前記演算数有効桁算出手段で求めた演算数の有効桁
が、ハードウェアのもつ演算命令で処理可能か否かを判
定し処理方式を分ける処理方式判定手段と、前記処理方
式判定手段でハードウェアのもつ演算命令で処理可能と
判定された場合は、被演算数の有効桁と演算数の有効桁
で演算を行うハードウェア演算命令手段と、前記処理方
式判定手段でハードウェアのもつ演算命令で処理可能と
判定された場合は被演算数の有効桁と演算数の有効桁で
演算を行うハードウェア演算命令手段と、前記処理方式
判定手段でハードウェアのもつ演算命令で処理不可能と
判定された場合は指定された被演算数と演算数で演算を
行う命令組み合わせ演算手段とを備える。(Means for Solving the Problems) The high-speed binary arithmetic processing determination method for decimal data according to the present invention is characterized in that the specified operand or operand has a large digit, and the hardware has a decimal data arithmetic instruction. In the high-speed binary arithmetic processing determination method for decimal type data that cannot be processed by Processing by determining whether or not the significant digits of the operand calculated by the operand significant digit calculation means and the significant digits of the operand calculated by the operand significant digit calculation means can be processed by the arithmetic instruction of the hardware. A processing method determining means for separating the methods, and a hardware operation for performing an operation using the significant digits of the operand and the significant digits of the operand, if the processing method determining means determines that the processing can be performed using the arithmetic instructions of the hardware. an instruction means, a hardware operation instruction means for performing an operation using the significant digits of the operand and the significant digits of the operand when the processing method determination means determines that the process can be performed using an operation instruction of the hardware; If the method determining means determines that processing cannot be performed using the arithmetic instructions provided by the hardware, the method includes an instruction combination arithmetic means that performs an arithmetic operation using a designated operand and arithmetic number.
(実施例)
次に本発明による10進型データの高速二項演算処理方
式の一実施例を図面を参照して説明する。(Embodiment) Next, an embodiment of the high-speed binary operation processing method for decimal type data according to the present invention will be described with reference to the drawings.
第1図を参照すると、本発明の一実施例は、被演算数有
効桁算出処理1、演算数有効桁算出処理2、処理方式判
定処理3、ハードウェア演算命令処理4、および命令組
み合わせ演算処理5とから構成されて成る。Referring to FIG. 1, one embodiment of the present invention includes operand significant digit calculation processing 1, operation number significant digit calculation processing 2, processing method determination processing 3, hardware operation instruction processing 4, and instruction combination operation processing. It consists of 5.
被演算数有効桁算出処理1は、与えられた被演算の上位
から1桁を構成する領域分ずつ有効な値が出現するまで
検査を行い、被演算数全体の桁数から無効な桁数を引き
被演算数の有効桁を求める。In operand valid digit calculation process 1, a valid value is checked for each area constituting one digit from the high order of the given operand until a valid value appears, and the number of invalid digits is calculated from the number of digits of the entire operand. Find the significant digits of the subtract operand.
演算数有効桁算出処理2は、与えられた演算数の上位か
ら1桁を構成する領域分ずつ有効な値が出現するまで検
査を行い、演算数全体の桁数から無効な桁数を引き演算
数の有効桁を求める。Valid digit calculation process 2 for arithmetic operations is performed by checking the upper part of the given operand until a valid value appears in each region that constitutes one digit, and then subtracting the number of invalid digits from the number of digits of the entire operand. Find the significant digits of a number.
処理方式判定処理3は、被演算数有効桁算出処理1で求
めた被演算数の有効桁と演算数有効桁算出処理2で求め
た演算数の有効桁がハードウェアのもつ10進型データ
の演算命令で処理可能な桁数か判定を行い処理可能であ
ればハードウェア演算命令処理4へ分岐し、処理不可能
であれば命令組み合わせ演算処理5へ分岐する。Processing method determination processing 3 determines whether the significant digits of the operand calculated in operand significant digit calculation process 1 and the significant digits of the operand calculated in operand significant digit calculation process 2 are the decimal type data of the hardware. It is determined whether the number of digits can be processed by the arithmetic instruction, and if it can be processed, the process branches to hardware arithmetic instruction processing 4, and if it cannot be processed, it branches to instruction combination arithmetic processing 5.
ハードウェア演算命令処理4は、被演算数の下位有効桁
分を新しい被演算数とし、また演算数の下位有効桁分を
新しい演算数としてハードウェアのもつ10進型データ
の演算命令を使用して二項演算処理を行う。The hardware arithmetic instruction processing 4 uses a decimal data arithmetic instruction possessed by the hardware as the lower significant digits of the operand as a new operand and the lower significant digits of the operand as a new operand. Performs binary operation processing.
命令組み合わせ演算処理5は、被演算数と演算数とでハ
ードウェアの命令の組み合わせ処理により二項演算処理
を行う。The instruction combination arithmetic processing 5 performs binary arithmetic processing by combining hardware instructions using an operand and an arithmetic number.
(発明の効果)
以上説明したように本発明は、被演算数と演算数の有効
桁を求めてハードウェアのもつ10進型データの演算命
令で処理可能か判断し、可能な場合は演算命令を使用す
ることにより無効な桁を参照せず、1回の演算命令で処
理を行い処理時間が削減できる効果がある。(Effects of the Invention) As explained above, the present invention calculates the significant digits of the operand and the operand, determines whether it can be processed with the decimal type data operation instructions of the hardware, and if possible, uses the operation instructions. By using , invalid digits are not referenced, processing is performed with one operation instruction, and processing time can be reduced.
第1図は本発明による10進型データの高速二項演算処
理判定方式の一実施例を示す図である。
l・・・被演算数有効桁算出処理、2・・・演算数有効
桁算出処理、3・・・処理方式判定処理、4・・・ハー
ドウェア演算命令処理、5・・・命令組み合わせ演算処
理。FIG. 1 is a diagram showing an embodiment of a high-speed binary operation processing determination method for decimal type data according to the present invention. 1... Significant digits of operand calculation process, 2... Significant digits of operand calculation process, 3... Processing method determination process, 4... Hardware calculation instruction processing, 5... Instruction combination calculation process .
Claims (1)
ウェアのもつ10進型データの演算命令では処理できな
い10進型データの高速二項演算処理判定方式において
、被演算数の有効桁を求める被演算数有効桁算出手段と
、演算数の有効桁を求める演算数有効桁算出手段と、前
記被演算数有効桁算出手段で求めた被演算数の有効桁と
前記演算数有効桁算出手段で求めた演算数の有効桁が、
ハードウェアのもつ演算命令で処理可能か否かを判定し
、処理方式を分ける処理方式判定手段と、前記処理方式
判定手段でハードウェアのもつ演算命令で処理可能と判
定された場合は、被演算数の有効桁と演算数の有効桁で
演算を行うハードウェア演算命令手段と、前記処理方式
判定手段でハードウェアのもつ演算命令で処理可能と判
定された場合は被演算数の有効桁と演算数の有効桁で演
算を行うハードウェア演算命令手段と、前記処理方式判
定手段でハードウェアのもつ演算命令で処理不可能と判
定された場合は指定された被演算数と演算数で演算を行
う命令組み合わせ演算手段とを備えて成ることを特徴と
する10進型データの高速二項演算処理判定方式。Find the significant digits of the operand in a high-speed binary arithmetic processing judgment method for decimal type data that cannot be processed by the hardware's decimal type data operation instructions because the digits of the specified operand or operand are large. an operand significant digits calculating means, an operand significant digits calculating means for calculating significant digits of the operand, and a significant digit of the operand calculated by the operand significant digits calculating means and the operand significant digits calculating means. The significant digits of the calculated number are
A processing method determining means that determines whether processing is possible with the arithmetic instructions of the hardware and divides the processing method; A hardware operation instruction means that performs an operation using the significant digits of the number and the significant digits of the operand, and a hardware operation instruction means that performs an operation using the significant digits of the operand if the processing method determining means determines that the processing can be performed using the operation instructions of the hardware. A hardware operation instruction means for performing an operation using the significant digits of a number, and when the processing method determining means determines that the operation cannot be processed using the operation instructions provided by the hardware, the operation is performed using a specified operand and arithmetic number. 1. A high-speed binary arithmetic processing determination method for decimal type data, characterized in that it comprises an instruction combination arithmetic means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1069509A JPH02247726A (en) | 1989-03-22 | 1989-03-22 | System for deciding fast dyadic operation of decimal type data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1069509A JPH02247726A (en) | 1989-03-22 | 1989-03-22 | System for deciding fast dyadic operation of decimal type data |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02247726A true JPH02247726A (en) | 1990-10-03 |
Family
ID=13404783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1069509A Pending JPH02247726A (en) | 1989-03-22 | 1989-03-22 | System for deciding fast dyadic operation of decimal type data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02247726A (en) |
-
1989
- 1989-03-22 JP JP1069509A patent/JPH02247726A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5136536A (en) | Floating-point ALU with parallel paths | |
JPH02247726A (en) | System for deciding fast dyadic operation of decimal type data | |
JPS59229644A (en) | Multiplier | |
JPH0362124A (en) | Adding circuit | |
JPH01271876A (en) | Comparison arithmetic processor | |
JPH04239911A (en) | Decimal multiplication system | |
JPH0378832A (en) | Data processor | |
JPH02148140A (en) | Conditional branch control system for information processor | |
JPH03158969A (en) | Data processor | |
JPS60163134A (en) | Virtual computer system | |
JPH0444289B2 (en) | ||
JP2782827B2 (en) | Comparison operation circuit | |
JPS63157241A (en) | Function type processor | |
JPS62271017A (en) | Addition and subtraction device for decimal number | |
JPH02171922A (en) | Central processor unit | |
JPS62288936A (en) | Generating system for conditional code in decimal operation | |
JPH02284225A (en) | Arithmetic processor | |
JPH01295336A (en) | Optimization system for critical section | |
JPH0260005B2 (en) | ||
JPS63247834A (en) | Processing method for pseudo instruction of floating point function | |
Belsare | Use of Array Processors in Computer Vision | |
JPH01195532A (en) | Microprocessor | |
JPH02252021A (en) | Shifting operation system and computing element | |
JPH05204603A (en) | Incorrect decimal number detector | |
JPS63279321A (en) | Microprogram controller |