BS 7237-1990 Specification for binary floating point arithmetic for microprocessor systems《微处理器系统二进制浮点算法规范》.pdf
《BS 7237-1990 Specification for binary floating point arithmetic for microprocessor systems《微处理器系统二进制浮点算法规范》.pdf》由会员分享,可在线阅读,更多相关《BS 7237-1990 Specification for binary floating point arithmetic for microprocessor systems《微处理器系统二进制浮点算法规范》.pdf(18页珍藏版)》请在麦多课文档分享上搜索。
1、BRITISH STANDARD BS 7237:1990 IEC 559:1989 Specification for Binary floating point arithmetic for microprocessor systemsBS7237:1990 This British Standard, having been prepared under the directionof the Information Systems Technology Standards Policy Committee, was publishedunder the authority ofthe
2、Board of BSI and comes intoeffect on 31 July 1990 BSI 07-1999 The following BSI references relate to the work on this standard: Committee reference IST/6 Draft for comment 89/65509 DC ISBN 0 580 18114 6 Committees responsible for this British Standard The preparation of this British Standard was ent
3、rusted by the Information Systems Technology Standards Policy Committee (IST/-) to Technical Committee IST/6, upon which the following bodies were represented: Association for Payment Clearing Services British Computer Society British Telecommunications plc Business Equipment and Information Technol
4、ogy Association Department of Trade and Industry (Information Technology Division) Department of Trade and Industry (National Physical Laboratory) Electricity Supply Industry in England and Wales Electronic Engineering Association HM Treasury (Central Computer and Telecommunications Agency) Informat
5、ion Technology Users Standards Association Inter-Universities Computing Committee Joint Network Team LAMSAC National Computing Centre Ltd. National Health Service OFTEL (Office of Telecommunications) Post Office Telecommunication Engineering and Manufacturing Association Telecommunications Managers
6、Association User Standards Forum for Information Technology (Institute of Data Processing Management) Amendments issued since publication Amd. No. Date CommentsBS7237:1990 BSI 07-1999 i Contents Page Committees responsible Inside front cover National foreword ii 1 Scope 1 1.1 Implementation objectiv
7、es 1 1.2 Inclusions 1 1.3 Exclusions 1 2 Definitions 1 3 Formats 2 3.1 Sets of values 2 3.2 Basic formats 3 3.3 Extended formats 4 3.4 Combinations of formats 4 4 Rounding 5 4.1 Round to nearest 5 4.2 Directed roundings 5 4.3 Rounding precision 5 5 Operations 5 5.1 Arithmetic 5 5.2 Square root 6 5.3
8、 Floating-point conversions 6 5.4 Conversions between floating point and integer 6 5.5 Round floating-point number to integral value 6 5.6 Binary 7 decimal conversion 6 5.7 Comparison 7 6 Infinity, NaNs and signed zero 8 6.1 Infinity arithmetic 8 6.2 Operations with NaNs 8 6.3 The sign bit 9 7 Excep
9、tions 9 7.1 Invalid operations 9 7.2 Division by zero 9 7.3 Overflow 10 7.4 Underflow 10 7.5 Inexact 11 8 Traps 11 8.1 Trap handler 11 8.2 Precedence 11 Appendix A Recommended functions and predicates 12 Figure 1 Single format 4 Figure 2 Double format 4 Table 1 Summary of format parameters 3 Table 2
10、 Decimal conversion ranges 7 Table 3 Correctly rounded decimal conversion range 7 Table 4 Predicates and relations 8BS7237:1990 ii BSI 07-1999 National foreword This British Standard, prepared under the direction of the Information Systems Technology Standards Policy Committee, is identical with IEC
11、 559:1989 “Binary floating-point arithmetic for microprocessor systems”, published by the International Electrotechnical Commission (IEC). A British Standard does not purport to include all the necessary provisions of a contract. Users of British Standards are responsible for their correct applicati
12、on. Compliance with a British Standard does not of itself confer immunity from legal obligations. Summary of pages This document comprises a front cover, an inside front cover, pages i and ii, pages1 to 12 and a back cover. This standard has been updated (see copyright date) and may have had amendme
13、nts incorporated. This will be indicated in the amendment table on theinside front cover.IEC559:1989 BSI 07-1999 1 1 Scope 1.1 Implementation objectives It is intended that an implementation of a floating-point system conforming to this standard can be realized entirely in software, entirely in hard
14、ware, or in any combination of software and hardware. It is the environment that the programmer or user of the system sees that conforms or fails to conform to this standard. Hardware components that require software support to conform shall not be said to conform apart from such software. 1.2 Inclu
15、sions This standard specifies: 1) basic and extended floating-point number formats; 2) add, subtract, multiply, divide, square root, remainder and compare operations; 3) conversions between integer and floating-point numbers; 4) conversions between different floating-point formats; 5) conversions be
16、tween basic format floating-point numbers and decimal strings, and 6) floating-point exceptions and their handling, including non-numbers (NaNs). 1.3 Exclusions This standard does not specify: 1) formats of decimal strings and integers; 2) interpretation of the signs and significant fields of NaNs,
17、or 3) binary 7 decimal conversions to and from extended formats. 2 Definitions biased exponent the sum of the exponent and a constant (bias) chosen to make the biased exponents range non-negative binary floating-point number a bit-string characterized by three components: a sign, a signed exponent,
18、and a significand. Its numerical value, if any, is the signed product of its significand and two raised to the power of its exponent. In this standard a bit-string is not always distinguished from a number it may represent denormalized number a nonzero floating-point number, the exponent of which ha
19、s a reserved value, usually the formats minimum, and the explicit or implicit leading significant bit of which is zero destination the location for the result of a binary or unary operation. The destination may be either explicitly designated by the user or implicitly supplied by the system (e.g. in
20、termediate results in sub-expressions or arguments for procedures). Some languages place the results of intermediate calculations in destinations beyond the users control. Nonetheless, this standard defines the result of an operation in terms of that destinations format as well as the operands value
21、s exponent the component of a binary floating-point number that normally signifies the integer power to which two is raised in determining the value of the represented number. Occasionally the exponent is called the signed or unbiased exponent fraction the field of the significand that lies to the r
22、ight of its implied binary point mode a variable that a user may set, sense, save and restore, to control the execution of subsequent arithmetic operations. The default mode is the mode that a program can assume to be in effect unless an explicitly contrary statement is included either in the progra
23、m or in its specificationIEC559:1989 2 BSI 07-1999 the following modes shall be implemented: 1) rounding, to control the direction of rounding errors, and in certain implementations. 2) rounding precision, to shorten the precision of results. The implementor may, at his option, implement the followi
24、ng modes: 3) traps disabled/enabled, to handle exceptions. NaN not a number; a symbolic entity encoded in floating-point format. There are two types of NaNs (see6.2). Signalling NaNs signal the invalid operation exception (see7.1) whenever they appear as operands. Quiet NaNs propagate through almost
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BS72371990SPECIFICATIONFORBINARYFLOATINGPOINTARITHMETICFORMICROPROCESSORSYSTEMS 微处理器 系统 二进制 浮点 算法 规范

链接地址:http://www.mydoc123.com/p-546638.html