ISO IEC TR 24733-2011 Information technology - Programming languages their environments and system software interfaces - Extensions for the programming language.pdf
《ISO IEC TR 24733-2011 Information technology - Programming languages their environments and system software interfaces - Extensions for the programming language.pdf》由会员分享,可在线阅读,更多相关《ISO IEC TR 24733-2011 Information technology - Programming languages their environments and system software interfaces - Extensions for the programming language.pdf(66页珍藏版)》请在麦多课文档分享上搜索。
1、 Reference number ISO/IEC TR 24733:2011(E) ISO/IEC 2011TECHNICAL REPORT ISO/IEC TR 24733 First edition 2011-11-01 Information technology Programming languages, their environments and system software interfaces Extensions for the programming language C+ to support decimal floating-point arithmetic Te
2、chnologies de linformation Langages de programmation, leurs environnements et interfaces de logiciel systme Extensions pour le langage de programmation C+ pour supporter larithmtique flottante dcimale ISO/IEC TR 24733:2011(E) COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2011 All rights reserved. Unless othe
3、rwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyrigh
4、t office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2011 All rights reservedISO/IEC TR 24733:2011(E) Contents Page Foreword vi Introduction vii 0.1 General vii 0.2 Arithmetic model vii 0.3
5、 The Formats . viii 1 Scope . 1 2 Normative references . 1 3 Conventions . 2 3.1 General 2 3.2 Relation to C+ Standard Library Introduction 2 3.3 Relation to “Technical Report on C+ Library Extensions“ 3 3.4 Categories of extensions . 3 3.5 Namespaces and headers . 4 4 Decimal floating-point types .
6、 5 4.1 Characteristics of decimal floating-point types 5 4.2 Decimal Types 6 4.2.1 Header synopsis . 6 4.2.2 Class decimal32 . 10 4.2.2.1 Class summary 10 4.2.2.2 Construct/copy/destroy . 11 4.2.2.3 Conversion from floating-point type 11 4.2.2.4 Conversion from integral type 11 4.2.2.5 Conversion to
7、 integral type . 12 4.2.2.6 Increment and decrement operators 12 4.2.2.7 Compound assignment 12 4.2.3 Class decimal64 14 4.2.3.1 Class summary 14 4.2.3.2 Construct/copy/destroy . 14 4.2.3.3 Conversion from floating-point type 14 4.2.3.4 Conversion from integral type 15 4.2.3.5 Conversion to integral
8、 type . 15 4.2.3.6 Increment and decrement operators 15 4.2.3.7 Compound assignment 16 4.2.4 Class decimal128 17 4.2.4.1 Class summary 17 4.2.4.2 Construct/copy/destroy . 17 4.2.4.3 Conversion from floating-point type 17 4.2.4.4 Conversion from integral type 18 4.2.4.5 Conversion to integral type .
9、18 4.2.4.6 Increment and decrement operators 18 4.2.4.7 Compound assignment 19 4.2.5 Initialization from coefficient and exponent 20 ISO/IEC 2011 All rights reserved iiiISO/IEC TR 24733:2011(E) 4.2.6 Conversion to generic floating-point type . 20 4.2.7 Unary arithmetic operators 21 4.2.8 Binary arit
10、hmetic operators 21 4.2.9 Comparison operators 22 4.2.10 Formatted input 25 4.2.11 Formatted output 26 4.3 Additions to header 27 4.4 Headers and 30 4.4.1 General . 30 4.4.2 Additions to header synopsis . 30 4.4.3 Additions to header synopsis . 31 4.4.4 Maximum finite value 31 4.4.5 Epsilon . 31 4.4
11、.6 Minimum positive normal value 32 4.4.7 Minimum positive subnormal value 32 4.4.8 Evaluation format . 32 4.5 Additions to and 33 4.5.1 General . 33 4.5.2 Additions to synopsis . 33 4.5.3 Rounding modes 34 4.5.4 The fe_dec_getround function 34 4.5.5 The fe_dec_setround function 35 4.5.6 Changes to
12、. 35 4.6 Additions to and 35 4.6.1 General . 35 4.6.2 Additions to header synopsis . 36 4.6.3 macros 41 4.6.4 Evaluation formats . 41 4.6.5 samequantum functions . 42 4.6.6 quantexp functions 42 4.6.7 quantize functions 43 4.6.8 Elementary functions . 43 4.6.9 abs function overloads . 45 4.6.10 Chan
13、ges to . 45 4.6.10.1 General 45 4.6.10.2 Additions to header synopsis 45 4.7 Additions to and . 45 4.8 Additions to and 45 4.8.1 Additions to header synopsis . 45 4.8.2 strtod functions . 45 4.8.3 Changes to 45 4.9 Additions to and . 46 4.9.1 Additions to synopsis . 46 4.9.2 wcstod functions . 46 4.
14、9.3 Changes to . 46 4.10 Facets 46 4.10.1 General . 46 iv ISO/IEC 2011 All rights reservedISO/IEC TR 24733:2011(E) ISO/IEC 2011 All rights reserved v4.10.2 Additions to header synopsis . 47 4.10.3 Class template extended_num_get . 47 4.10.3.1 extended_num_get members 49 4.10.3.2 extended_num_get vir
15、tual functions . 50 4.10.4 Class template extended_num_put . 51 4.10.4.1 extended_num_put members 52 4.10.4.2 extended_num_put virtual functions . 53 4.11 Type traits . 53 4.11.1 Addition to header synopsis . 53 4.11.2 is_decimal_floating_point type_trait . 54 4.12 Hash functions 54 4.12.1 Additions
16、 to header synopsis . 54 4.12.2 Hash function specializations 54 5 Notes on C compatibility 55 5.1 General 55 5.2 Literals 55 5.3 Conversions . 55 ISO/IEC TR 24733:2011(E) Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form t
17、he specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC tech
18、nical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. I
19、nternational Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for
20、voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote. In exceptional circumstances, when the joint technical committee has collected data of a different kind from that which is normally published as an International Standard (“stat
21、e of the art”, for example), it may decide to publish a Technical Report. A Technical Report is entirely informative in nature and shall be subject to review every five years in the same manner as an International Standard. Attention is drawn to the possibility that some of the elements of this docu
22、ment may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. ISO/IEC TR 24733 was prepared jointly by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 22, Programming languages, their environments a
23、nd system software interfaces. vi ISO/IEC 2011 All rights reservedISO/IEC TR 24733:2011(E) Introduction 0.1 General Most of todays general purpose computing architectures provide binary floating-point arithmetic in hardware. Binary float-point is an efficient representation that minimizes memory use
24、, and is simpler to implement than floating-point arithmetic using other bases. It has therefore become the norm for scientific computations, with almost all implementations following the IEEE-754 standard for binary floating-point arithmetic. However, human computation and communication of numeric
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ISOIECTR247332011INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESTHEIRENVIRONMENTSANDSYSTEMSOFTWAREINTERFACESEXTENSIONSFORTHEPROGRAMMINGLANGUAGEPDF

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