JP5794385B2 - 演算処理装置及び演算処理装置の制御方法 - Google Patents
演算処理装置及び演算処理装置の制御方法 Download PDFInfo
- Publication number
- JP5794385B2 JP5794385B2 JP2014507237A JP2014507237A JP5794385B2 JP 5794385 B2 JP5794385 B2 JP 5794385B2 JP 2014507237 A JP2014507237 A JP 2014507237A JP 2014507237 A JP2014507237 A JP 2014507237A JP 5794385 B2 JP5794385 B2 JP 5794385B2
- Authority
- JP
- Japan
- Prior art keywords
- arithmetic processing
- coefficient
- input data
- instruction
- data
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/544—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
- G06F7/556—Logarithmic or exponential functions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/483—Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2207/00—Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F2207/483—Indexing scheme relating to group G06F7/483
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2207/00—Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F2207/556—Indexing scheme relating to group G06F7/556
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Optimization (AREA)
- General Engineering & Computer Science (AREA)
- Nonlinear Science (AREA)
- Complex Calculations (AREA)
- Advance Control (AREA)
Description
Unit)等の演算処理装置において、指数関数等の演算は、一般的にテーラー級数演算を用いて行われる。指数関数の演算においてテーラー級数演算をある有限な次数で打ち切ったときに十分な精度が得られるようにするためには、指数関数を、有限の次数で与えられた精度に収束するテーラー級数の演算であるテーラー級数演算と係数に分解する必要がある。
なお、以下の説明において「**」はべき乗を示し、「!」は階乗を示し、「*」は乗算を示すものとする。また、「log2()」は底2の対数を示し、「log()」は底e(ネイピア数)の対数を示すものとする。
exp(x)
=(2**log2(e))**x
=(2**(1/log(2))**x
=2**(x/log(2))
=2**(y+z)
=(2**y)*(2**z)
=exp(log(2**y))*(2**z)
=exp(y*log(2))*(2**z)
=exp(y2)*(2**z)
stdf zi,[] …(命令C1)
ldx [],zii …(命令C2)
and zii,63,Texpe …(命令C3)
sllx Texpe,3,Texpo …(命令C4)
ldx [Texpb+Texpo],p2zi …(命令C5)
mov 2047,p2zmm …(命令C6)
sllx p2zmm,6,p2zmm …(命令C7)
and zii,p2zmm,p2zm …(命令C8)
sllx p2zm,46,p2zm …(命令C9)
or p2zi,p2zm,p2zi …(命令C10)
stdx p2zi,[] …(命令C11)
lddf [],p2z …(命令C12)
fexpad zi,p2z …(命令I1)
12 キャッシュメモリ
13 リネーミングレジスタ
14 レジスタファイル
15 バイパスデータ
16、17、18、23 マルチプレクサ
19 積和演算器
20 演算器
21 定数テーブル
22 命令種別コード
Claims (5)
- 指数関数を級数演算と前記級数演算に対する係数とに分解した場合における浮動小数点数形式で表現した前記係数の指数部を、入力される入力データの第1の部分に基づいて生成する指数生成部と、
前記入力データの第2の部分が示す値i(iは自然数)に対応して(2**(i/(2**第2の部分のビット幅)))(**はべき乗を示す)の値を浮動小数点数形式で表現した前記係数の仮数部を定数データとして記憶する記憶部と、
前記記憶部から、前記入力データの第2の部分に応じた定数データを読み出す定数生成部と、
実行する命令が前記指数関数の係数を算出する係数算出命令である場合、所定の値の符号部と、前記指数生成部からの指数部と、前記定数生成部からの定数データとを選択して出力する選択部を有することを特徴とする演算処理装置。 - 前記入力データの第1の部分は、前記入力データの(n+11)ビット目〜(n+1)ビット目(nは自然数)であり、
前記入力データの第2の部分は、前記入力データのnビット目〜0ビット目であることを特徴とする請求項1記載の演算処理装置。 - 前記入力データの(n+11)ビット目〜(n+1)ビット目を前記係数を浮動小数点数形式で表した指数部とし、前記入力データのnビット目〜0ビット目により前記記憶部を参照して得られた定数データを前記係数を浮動小数点数形式で表した仮数部とすることを特徴とする請求項2記載の演算処理装置。
- 前記入力データを用いた積和演算を行う積和演算器を有し、
実行する命令が前記係数算出命令以外の命令である場合、前記積和演算器からの前記入力データを用いた積和演算の結果である積和演算結果を選択して出力することを特徴とする請求項1〜3のいずれか1項に記載の演算処理装置。 - 演算処理装置の制御方法において、
前記演算処理装置が有する指数生成部が、指数関数を級数演算と前記級数演算に対する係数とに分解した場合における浮動小数点数形式で表現した前記係数の仮数部を、入力される入力データの第1の部分に基づいて生成し、
前記演算処理装置が有する定数生成部が、前記入力データの第2の部分が示す値i(iは自然数)に対応して(2**(i/(2**第2の部分のビット幅)))(**はべき乗を示す)の値を浮動小数点数形式で表現した前記係数の仮数部を定数データとして記憶する記憶部から、前記入力データの第2の部分に応じた定数データを読み出し、
実行する命令が前記指数関数の係数を算出する係数算出命令である場合、前記演算処理装置が有する選択部が、所定の値の符号部と、前記指数生成部からの指数部と、前記定数生成部からの定数データとを選択して出力することを特徴とする演算処理装置の制御方法。
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2012/058646 WO2013145276A1 (ja) | 2012-03-30 | 2012-03-30 | 演算処理装置及び演算処理装置の制御方法 |
Publications (2)
Publication Number | Publication Date |
---|---|
JPWO2013145276A1 JPWO2013145276A1 (ja) | 2015-08-03 |
JP5794385B2 true JP5794385B2 (ja) | 2015-10-14 |
Family
ID=49258639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014507237A Active JP5794385B2 (ja) | 2012-03-30 | 2012-03-30 | 演算処理装置及び演算処理装置の制御方法 |
Country Status (5)
Country | Link |
---|---|
US (1) | US9477442B2 (ja) |
EP (1) | EP2833258B1 (ja) |
JP (1) | JP5794385B2 (ja) |
CN (1) | CN104169866B (ja) |
WO (1) | WO2013145276A1 (ja) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6497250B2 (ja) | 2015-07-16 | 2019-04-10 | 富士通株式会社 | 演算処理装置および演算処理装置の制御方法 |
CN108595147B (zh) | 2018-01-02 | 2021-03-23 | 上海兆芯集成电路有限公司 | 具有级数运算执行电路的微处理器 |
JP6933810B2 (ja) * | 2018-01-24 | 2021-09-08 | 富士通株式会社 | 演算処理装置および演算処理装置の制御方法 |
US11372621B2 (en) | 2020-06-04 | 2022-06-28 | Apple Inc. | Circuitry for floating-point power function |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5963460A (en) * | 1996-12-17 | 1999-10-05 | Metaflow Technologies, Inc. | Apparatus for computing transcendental functions quickly |
JP2930069B1 (ja) * | 1998-03-06 | 1999-08-03 | 日本電気株式会社 | 3次元グラフィックス処理装置における光源計算高速化の為の指数関数演算方法および装置 |
JP2000099493A (ja) * | 1998-09-18 | 2000-04-07 | Fuji Xerox Co Ltd | 誤差関数計算装置 |
US7509363B2 (en) * | 2001-07-30 | 2009-03-24 | Ati Technologies Ulc | Method and system for approximating sine and cosine functions |
US6981009B2 (en) * | 2002-07-09 | 2005-12-27 | Silicon Integrated Systems Corp. | Apparatus and method for computing a logarithm of a floating-point number |
US7143126B2 (en) * | 2003-06-26 | 2006-11-28 | International Business Machines Corporation | Method and apparatus for implementing power of two floating point estimation |
JP4755129B2 (ja) * | 2007-03-16 | 2011-08-24 | 富士通株式会社 | 演算処理装置及び演算処理装置の制御方法 |
US9128790B2 (en) * | 2009-01-30 | 2015-09-08 | Intel Corporation | Digital signal processor having instruction set with an exponential function using reduced look-up table |
JP5304483B2 (ja) | 2009-06-30 | 2013-10-02 | 富士通株式会社 | 演算処理装置 |
-
2012
- 2012-03-30 EP EP12872640.3A patent/EP2833258B1/en active Active
- 2012-03-30 JP JP2014507237A patent/JP5794385B2/ja active Active
- 2012-03-30 WO PCT/JP2012/058646 patent/WO2013145276A1/ja active Application Filing
- 2012-03-30 CN CN201280071614.8A patent/CN104169866B/zh active Active
-
2014
- 2014-09-08 US US14/479,392 patent/US9477442B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104169866A (zh) | 2014-11-26 |
EP2833258B1 (en) | 2016-09-14 |
CN104169866B (zh) | 2017-08-29 |
WO2013145276A1 (ja) | 2013-10-03 |
EP2833258A4 (en) | 2015-03-18 |
EP2833258A1 (en) | 2015-02-04 |
JPWO2013145276A1 (ja) | 2015-08-03 |
US20140379772A1 (en) | 2014-12-25 |
US9477442B2 (en) | 2016-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6853777B2 (ja) | プログラム可能な有効度データを使用するデータ処理装置および方法 | |
KR101533516B1 (ko) | Scale, round, getexp, round, getmant, reduce, range 및 class 명령어들을 실행할 수 있는 곱셈 덧셈 기능 유닛 | |
JP6933810B2 (ja) | 演算処理装置および演算処理装置の制御方法 | |
JPH08185309A (ja) | 4倍精度演算の実行方法 | |
US20130246496A1 (en) | Floating-point vector normalisation | |
JP5640081B2 (ja) | 飽和を伴う整数乗算および乗算加算演算 | |
US20080301213A1 (en) | Division with rectangular multiplier supporting multiple precisions and operand types | |
GB2454201A (en) | Combined Magnitude Detection and Arithmetic Operation | |
JP5794385B2 (ja) | 演算処理装置及び演算処理装置の制御方法 | |
JP2006154979A (ja) | 浮動小数点数演算回路 | |
JP5304483B2 (ja) | 演算処理装置 | |
JP2011517496A (ja) | 多項式データ処理演算 | |
Boldo et al. | Emulating round-to-nearest ties-to-zero “augmented” floating-point operations using round-to-nearest ties-to-even arithmetic | |
Fiolhais et al. | An efficient exact fused dot product processor in FPGA | |
JP6604393B2 (ja) | ベクトルプロセッサ、演算実行方法、プログラム | |
EP3118737B1 (en) | Arithmetic processing device and method of controlling arithmetic processing device | |
EP3912272A1 (en) | Anchored data element conversion | |
JP3793505B2 (ja) | 演算器及びそれを用いた電子回路装置 | |
US20240202160A1 (en) | Processor, computer-readable recording medium storing instruction execution program, and information processing device | |
TW201905845A (zh) | 全精度及部分精度數值的計算方法及裝置 | |
Dieter et al. | Low-cost microarchitectural support for improved floating-point accuracy | |
EP2884403A1 (en) | Apparatus and method for calculating exponentiation operations and root extraction | |
US20130132452A1 (en) | Method and Apparatus for Fast Computation of Integral and Fractional Parts of a High Precision Floating Point Multiplication Using Integer Arithmetic | |
CN114327360A (zh) | 运算单元、浮点数计算的方法、装置、芯片和计算设备 | |
JPH04358224A (ja) | 開平演算装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150519 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150623 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20150714 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150727 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5794385 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |