lib quad math

26
7/16/2019 Lib Quad Math http://slidepdf.com/reader/full/lib-quad-math 1/26 The GCC Quad-Precision Math Library

Upload: monomico

Post on 30-Oct-2015

48 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 1/26

The GCC Quad-Precision Math Library

Page 2: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 2/26

Published by the Free Sotware Foundation51 Franklin Street, Fith FloorBoston, MA 02110-1301, USA

Copyright c 2010-2013 Free Sotware Foundation, Inc.

Permission is granted to copy, distribute and/or modiy this document underthe terms o the GNU Free Documentation License, Version 1.2 or any laterversion published by the Free Sotware Foundation; with no Invariant Sections,with the Front-Cover Texts being “A GNU Manual,” and with the Back-CoverTexts as in (a) below. A copy o the license is included in the section entitled“GNU Free Documentation License.”

(a) The FSF’s Back-Cover Text is: “You have the reedom to copy and modiythis GNU manual.

Page 3: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 3/26

i

Short Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1 Typedef and constants. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

32 Math Library Routines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

3 I/O Library Routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

GNU Free Documentation License . . . . . . . . . . . . . . . . . . . . . . . . . . 11

4 Reporting Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Page 4: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 4/26

Page 5: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 5/26

iii

Table of Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1 Typedef and constants . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Math Library Routines . . . . . . . . . . . . . . . . . . . . . . . . . 5

3 I/O Library Routines . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.1 strtoflt128 — Convert rom string . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.2 quadmath_snprintf — Convert to string . . . . . . . . . . . . . . . . . . . . . . . 9

GNU Free Documentation License. . . . . . . . . . . . . . .

11ADDENDUM: How to use this License or your documents . . . . . . . . . 18

4 Reporting Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Page 6: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 6/26

Page 7: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 7/26

Introduction 1

Introduction

This manual documents the usage o libquadmath, the GCC Quad-Precision Math LibraryApplication Programming Interace (API).

Page 8: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 8/26

Page 9: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 9/26

Chapter 1: Typede and constants 3

1 Typedef and constants

The ollowing data type has been dened via typedef.

__complex128: __float128-based complex numberThe ollowing macros are dened, which give the numeric limits o the __float128 data

type.

FLT128_MAX: largest nite numberFLT128_MIN: smallest positive number with ull precisionFLT128_EPSILON: diference between 1 and the next larger

representable number

FLT128_DENORM_MIN: smallest positive denormalized numberFLT128_MANT_DIG: number o digits in the mantissa (bit precision)FLT128_MIN_EXP: maximal negative exponentFLT128_MAX_EXP: maximal positive exponentFLT128_DIG: number o decimal digits in the mantissaFLT128_MIN_10_EXP: maximal negative decimal exponentFLT128_MAX_10_EXP: maximal positive decimal exponent

The ollowing mathematical constants o type __float128 are dened.

M_Eq : the constant e (Euler’s number)M_LOG2Eq : binary logarithm o 2M_LOG10Eq : common, decimal logarithm o 2M_LN2q : natural logarithm o 2M_LN10q : natural logarithm o 10M_PIq : pi

M_PI_2q : pi divided by twoM_PI_4q : pi divided by ourM_1_PIq : one over piM_2_PIq : one over two piM_2_SQRTPIq : two over square root o piM_SQRT2q : square root o 2M_SQRT1_2q : one over square root o 2

Page 10: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 10/26

Page 11: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 11/26

Chapter 2: Math Library Routines 5

2 Math Library Routines

The ollowing mathematical unctions are available:

acosq : arc cosine unctionacoshq : inverse hyperbolic cosine unctionasinq : arc sine unctionasinhq : inverse hyperbolic sine unctionatanq : arc tangent unctionatanhq : inverse hyperbolic tangent unctionatan2q : arc tangent unctioncbrtq : cube root unctionceilq : ceiling value unction

copysignq : copy sign o a numbercoshq : hyperbolic cosine unctioncosq : cosine unctionerfq : error unctionerfcq : complementary error unctionexpq : exponential unctionexpm1q : exponential minus 1 unction

Page 12: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 12/26

6 GCC libquadmath

fabsq : absolute value unctionfdimq : positive diference unctionfiniteq : check niteness o valuefloorq : oor value unctionfmaq : used multiply and addfmaxq : determine maximum o two valuesfminq : determine minimum o two valuesfmodq : remainder value unctionfrexpq : extract mantissa and exponenthypotq : Eucledian distance unctionilogbq : get exponent o the valueisinfq : check or innityisnanq : check or not a numberj0q : Bessel unction o the rst kind, rst orderj1q : Bessel unction o the rst kind, second order

jnq : Bessel unction o the rst kind, n-th orderldexpq : load exponent o the valuelgammaq : logarithmic gamma unctionllrintq : round to nearest integer valuellroundq : round to nearest integer value away rom zerologq : natural logarithm unctionlog10q : base 10 logarithm unctionlog1pq : compute natural logarithm o the value plus onelog2q : base 2 logarithm unction

Page 13: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 13/26

Chapter 2: Math Library Routines 7

lrintq : round to nearest integer valuelroundq : round to nearest integer value away rom zero

 modfq : decompose the oating-point numbernanq : return quiet NaNnearbyintq : round to nearest integernextafterq : next representable oating-point numberpowq : power unctionremainderq : remainder unctionremquoq : remainder and part o quotientrintq : round-to-nearest integral valueroundq : round-to-nearest integral value, return __float128

scalblnq : compute exponent using FLT_RADIX

scalbnq : compute exponent using FLT_RADIX

signbitq : return sign bitsincosq : calculate sine and cosine simulataneously

sinhq : hyperbolic sine unctionsinq : sine unctionsqrtq : square root unctiontanq : tangent unctiontanhq : hyperbolic tangent unctiontgammaq : true gamma unctiontruncq : round to integer, towards zeroy0q : Bessel unction o the second kind, rst ordery1q : Bessel unction o the second kind, second orderynq : Bessel unction o the second kind, n-th ordercabsq  complex absolute value unctioncargq : calculate the argument

cimagq  imaginary part o complex numbercrealq : real part o complex numbercacoshq : complex arc hyperbolic cosine unctioncacosq : complex arc cosine unctioncasinhq : complex arc hyperbolic sine unctioncasinq : complex arc sine unctioncatanhq : complex arc hyperbolic tangent unctioncatanq : complex arc tangent unctionccosq  complex cosine unction:ccoshq : complex hyperbolic cosine unctioncexpq : complex exponential unctioncexpiq : computes the exponential unction o “i” times a

real value

Page 14: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 14/26

8 GCC libquadmath

clogq : complex natural logarithmclog10q : complex base 10 logarithmconjq : complex conjugate unctioncpowq : complex power unctioncprojq : project into Riemann Spherecsinq : complex sine unctioncsinhq : complex hyperbolic sine unctioncsqrtq : complex square rootctanq : complex tangent unctionctanhq : complex hyperbolic tangent unction

Page 15: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 15/26

Chapter 3: I/O Library Routines 9

3 I/O Library Routines

3.1 strtoflt128 — Convert from string

The unction strtoflt128 converts a string into a __float128 number.

Syntax __float128 strtoflt128 (const char *s, char **sp)

Arguments :s  input stringsp the address o the next character in the string

The argument sp contains, i not NULL, the address o the next character ol-lowing the parts o the string, which have been read.

Example#include <quadmath.h>

int main (){

__float128 r;

r = strtoflt128 ("1.2345678", NULL);

return 0;}

3.2 quadmath_snprintf — Convert to string

The unction quadmath_snprintf converts a __float128 oating-point number into astring. It is a specialized alternative to snprintf, where the ormat string is restricted

to a single conversion specier with Q modier and conversion specier e, E, f, F, g, G, a orA, with no extra characters beore or ater the conversion specier. The %m$ or *m$ stylemust not be used in the ormat.

Syntax int quadmath_snprintf (char *s, size_t size, const char *format,

...)

Arguments :s  output stringsize  byte size o the string, including tailing NULformat conversion specier string

Note On some targets when supported by the C library hooks are installed or printf

amily o unctions, so that printf ("%Qe", 1.2Q); etc. works too.

Example#include <quadmath.h>#include <stdlib.h>

#include <stdio.h>

int main (){

__float128 r;int prec = 20;

Page 16: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 16/26

10 GCC libquadmath

int width = 46;char buf[128];

r = 2.0q;r = sqrtq (r);int n = quadmath_snprintf (buf, sizeof buf, "%+-#*.20Qe", width, r);

if ((size_t) n < sizeof buf)printf ("%s\n", buf);/* Prints: +1.41421356237309504880e+00 */

quadmath_snprintf (buf, sizeof buf, "%Qa", r);if ((size_t) n < sizeof buf)

printf ("%s\n", buf);/* Prints: 0x1.6a09e667f3bcc908b2fb1366ea96p+0 */

n = quadmath_snprintf (NULL, 0, "%+-#46.*Qe", prec, r);if (n > -1)

{char *str = malloc (n + 1);

if (str){

quadmath_snprintf (str, n + 1, "%+-#46.*Qe", prec, r);printf ("%s\n", str);/* Prints: +1.41421356237309504880e+00 */

}free (str);

}return 0;

}

Page 17: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 17/26

GNU Free Documentation License 11

GNU Free Documentation License

Version 1.3, 3 November 2008

Copyright c 2000, 2001, 2002, 2007, 2008 Free Sotware Foundation, Inc.http://fsf.org/

Everyone is permitted to copy and distribute verbatim copieso this license document, but changing it is not allowed.

0. PREAMBLE

The purpose o this License is to make a manual, textbook, or other unctional anduseul document free  in the sense o reedom: to assure everyone the efective reedomto copy and redistribute it, with or without modiying it, either commercially or non-commercially. Secondarily, this License preserves or the author and publisher a wayto get credit or their work, while not being considered responsible or modicationsmade by others.

This License is a kind o “copylet”, which means that derivative works o the documentmust themselves be ree in the same sense. It complements the GNU General PublicLicense, which is a copylet license designed or ree sotware.

We have designed this License in order to use it or manuals or ree sotware, becauseree sotware needs ree documentation: a ree program should come with manualsproviding the same reedoms that the sotware does. But this License is not limited tosotware manuals; it can be used or any textual work, regardless o subject matter orwhether it is published as a printed book. We recommend this License principally orworks whose purpose is instruction or reerence.

1. APPLICABILITY AND DEFINITIONS

This License applies to any manual or other work, in any medium, that contains anotice placed by the copyright holder saying it can be distributed under the termso this License. Such a notice grants a world-wide, royalty-ree license, unlimited induration, to use that work under the conditions stated herein. The “Document”,below, reers to any such manual or work. Any member o the public is a licensee, andis addressed as “you”. You accept the license i you copy, modiy or distribute the workin a way requiring permission under copyright law.

A “Modied Version” o the Document means any work containing the Document ora portion o it, either copied verbatim, or with modications and/or translated intoanother language.

A “Secondary Section” is a named appendix or a ront-matter section o the Documentthat deals exclusively with the relationship o the publishers or authors o the Document

to the Document’s overall subject (or to related matters) and contains nothing thatcould all directly within that overall subject. (Thus, i the Document is in part atextbook o mathematics, a Secondary Section may not explain any mathematics.) Therelationship could be a matter o historical connection with the subject or with relatedmatters, or o legal, commercial, philosophical, ethical or political position regardingthem.

The “Invariant Sections” are certain Secondary Sections whose titles are designated, asbeing those o Invariant Sections, in the notice that says that the Document is released

Page 18: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 18/26

12 GCC libquadmath

under this License. I a section does not t the above denition o Secondary then it isnot allowed to be designated as Invariant. The Document may contain zero InvariantSections. I the Document does not identiy any Invariant Sections then there are none.

The “Cover Texts” are certain short passages o text that are listed, as Front-CoverTexts or Back-Cover Texts, in the notice that says that the Document is released underthis License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text maybe at most 25 words.

A “Transparent” copy o the Document means a machine-readable copy, representedin a ormat whose specication is available to the general public, that is suitable orrevising the document straightorwardly with generic text editors or (or images com-posed o pixels) generic paint programs or (or drawings) some widely available drawingeditor, and that is suitable or input to text ormatters or or automatic translation toa variety o ormats suitable or input to text ormatters. A copy made in an otherwiseTransparent le ormat whose markup, or absence o markup, has been arranged tothwart or discourage subsequent modication by readers is not Transparent. An imageormat is not Transparent i used or any substantial amount o text. A copy that isnot “Transparent” is called “Opaque”.

Examples o suitable ormats or Transparent copies include plain ascii withoutmarkup, Texino input ormat, LaTEX input ormat, SGML or XML using a publiclyavailable DTD, and standard-conorming simple HTML, PostScript or PDF designedor human modication. Examples o transparent image ormats include PNG, XCF

and JPG. Opaque ormats include proprietary ormats that can be read and editedonly by proprietary word processors, SGML or XML or which the DTD and/orprocessing tools are not generally available, and the machine-generated HTML,PostScript or PDF produced by some word processors or output purposes only.

The “Title Page” means, or a printed book, the title page itsel, plus such ollowingpages as are needed to hold, legibly, the material this License requires to appear in thetitle page. For works in ormats which do not have any title page as such, “Title Page”means the text near the most prominent appearance o the work’s title, preceding thebeginning o the body o the text.

The “publisher” means any person or entity that distributes copies o the Documentto the public.

A section “Entitled XYZ” means a named subunit o the Document whose title eitheris precisely XYZ or contains XYZ in parentheses ollowing text that translates XYZ inanother language. (Here XYZ stands or a specic section name mentioned below, suchas “Acknowledgements”, “Dedications”, “Endorsements”, or “History”.) To “Preserve

the Title” o such a section when you modiy the Document means that it remains asection “Entitled XYZ” according to this denition.

The Document may include Warranty Disclaimers next to the notice which states thatthis License applies to the Document. These Warranty Disclaimers are considered tobe included by reerence in this License, but only as regards disclaiming warranties:any other implication that these Warranty Disclaimers may have is void and has noefect on the meaning o this License.

2. VERBATIM COPYING

Page 19: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 19/26

GNU Free Documentation License 13

You may copy and distribute the Document in any medium, either commercially ornoncommercially, provided that this License, the copyright notices, and the licensenotice saying this License applies to the Document are reproduced in all copies, andthat you add no other conditions whatsoever to those o this License. You may not usetechnical measures to obstruct or control the reading or urther copying o the copiesyou make or distribute. However, you may accept compensation in exchange or copies.I you distribute a large enough number o copies you must also ollow the conditionsin section 3.

You may also lend copies, under the same conditions stated above, and you may publiclydisplay copies.

3. COPYING IN QUANTITY

I you publish printed copies (or copies in media that commonly have printed covers) o the Document, numbering more than 100, and the Document’s license notice requiresCover Texts, you must enclose the copies in covers that carry, clearly and legibly, allthese Cover Texts: Front-Cover Texts on the ront cover, and Back-Cover Texts onthe back cover. Both covers must also clearly and legibly identiy you as the publishero these copies. The ront cover must present the ull title with all words o the titleequally prominent and visible. You may add other material on the covers in addition.Copying with changes limited to the covers, as long as they preserve the title o theDocument and satisy these conditions, can be treated as verbatim copying in otherrespects.

I the required texts or either cover are too voluminous to t legibly, you should putthe rst ones listed (as many as t reasonably) on the actual cover, and continue therest onto adjacent pages.

I you publish or distribute Opaque copies o the Document numbering more than 100,you must either include a machine-readable Transparent copy along with each Opaque

copy, or state in or with each Opaque copy a computer-network location rom whichthe general network-using public has access to download using public-standard networkprotocols a complete Transparent copy o the Document, ree o added material. I you use the latter option, you must take reasonably prudent steps, when you begindistribution o Opaque copies in quantity, to ensure that this Transparent copy willremain thus accessible at the stated location until at least one year ater the last timeyou distribute an Opaque copy (directly or through your agents or retailers) o thatedition to the public.

It is requested, but not required, that you contact the authors o the Document wellbeore redistributing any large number o copies, to give them a chance to provide youwith an updated version o the Document.

4. MODIFICATIONSYou may copy and distribute a Modied Version o the Document under the conditionso sections 2 and 3 above, provided that you release the Modied Version under preciselythis License, with the Modied Version lling the role o the Document, thus licensingdistribution and modication o the Modied Version to whoever possesses a copy o it. In addition, you must do these things in the Modied Version:

A. Use in the Title Page (and on the covers, i any) a title distinct rom that o theDocument, and rom those o previous versions (which should, i there were any,

Page 20: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 20/26

14 GCC libquadmath

be listed in the History section o the Document). You may use the same title asa previous version i the original publisher o that version gives permission.

B. List on the Title Page, as authors, one or more persons or entities responsible or

authorship o the modications in the Modied Version, together with at least veo the principal authors o the Document (all o its principal authors, i it has ewerthan ve), unless they release you rom this requirement.

C. State on the Title page the name o the publisher o the Modied Version, as thepublisher.

D. Preserve all the copyright notices o the Document.

E. Add an appropriate copyright notice or your modications adjacent to the othercopyright notices.

F. Include, immediately ater the copyright notices, a license notice giving the publicpermission to use the Modied Version under the terms o this License, in the ormshown in the Addendum below.

G. Preserve in that license notice the ull lists o Invariant Sections and required CoverTexts given in the Document’s license notice.

H. Include an unaltered copy o this License.

I. Preserve the section Entitled “History”, Preserve its Title, and add to it an itemstating at least the title, year, new authors, and publisher o the Modied Versionas given on the Title Page. I there is no section Entitled “History” in the Docu-ment, create one stating the title, year, authors, and publisher o the Documentas given on its Title Page, then add an item describing the Modied Version asstated in the previous sentence.

J. Preserve the network location, i any, given in the Document or public access toa Transparent copy o the Document, and likewise the network locations given inthe Document or previous versions it was based on. These may be placed in the“History” section. You may omit a network location or a work that was publishedat least our years beore the Document itsel, or i the original publisher o theversion it reers to gives permission.

K. For any section Entitled “Acknowledgements” or “Dedications”, Preserve the Titleo the section, and preserve in the section all the substance and tone o each o thecontributor acknowledgements and/or dedications given therein.

L. Preserve all the Invariant Sections o the Document, unaltered in their text andin their titles. Section numbers or the equivalent are not considered part o thesection titles.

M. Delete any section Entitled “Endorsements”. Such a section may not be includedin the Modied Version.

N. Do not retitle any existing section to be Entitled “Endorsements” or to conict intitle with any Invariant Section.

O. Preserve any Warranty Disclaimers.

I the Modied Version includes new ront-matter sections or appendices that qualiyas Secondary Sections and contain no material copied rom the Document, you may atyour option designate some or all o these sections as invariant. To do this, add their

Page 21: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 21/26

GNU Free Documentation License 15

titles to the list o Invariant Sections in the Modied Version’s license notice. Thesetitles must be distinct rom any other section titles.

You may add a section Entitled “Endorsements”, provided it contains nothing but

endorsements o your Modied Version by various parties—or example, statements o peer review or that the text has been approved by an organization as the authoritativedenition o a standard.

You may add a passage o up to ve words as a Front-Cover Text, and a passage o upto 25 words as a Back-Cover Text, to the end o the list o Cover Texts in the ModiedVersion. Only one passage o Front-Cover Text and one o Back-Cover Text may beadded by (or through arrangements made by) any one entity. I the Document alreadyincludes a cover text or the same cover, previously added by you or by arrangementmade by the same entity you are acting on behal o, you may not add another; butyou may replace the old one, on explicit permission rom the previous publisher thatadded the old one.

The author(s) and publisher(s) o the Document do not by this License give permissionto use their names or publicity or or to assert or imply endorsement o any ModiedVersion.

5. COMBINING DOCUMENTS

You may combine the Document with other documents released under this License,under the terms dened in section 4 above or modied versions, provided that youinclude in the combination all o the Invariant Sections o all o the original documents,unmodied, and list them all as Invariant Sections o your combined work in its licensenotice, and that you preserve all their Warranty Disclaimers.

The combined work need only contain one copy o this License, and multiple identicalInvariant Sections may be replaced with a single copy. I there are multiple Invariant

Sections with the same name but diferent contents, make the title o each such sectionunique by adding at the end o it, in parentheses, the name o the original author orpublisher o that section i known, or else a unique number. Make the same adjustmentto the section titles in the list o Invariant Sections in the license notice o the combinedwork.

In the combination, you must combine any sections Entitled “History” in the vari-ous original documents, orming one section Entitled “History”; likewise combine anysections Entitled “Acknowledgements”, and any sections Entitled “Dedications”. Youmust delete all sections Entitled “Endorsements.”

6. COLLECTIONS OF DOCUMENTS

You may make a collection consisting o the Document and other documents released

under this License, and replace the individual copies o this License in the variousdocuments with a single copy that is included in the collection, provided that youollow the rules o this License or verbatim copying o each o the documents in allother respects.

You may extract a single document rom such a collection, and distribute it individu-ally under this License, provided you insert a copy o this License into the extracteddocument, and ollow this License in all other respects regarding verbatim copying o that document.

Page 22: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 22/26

16 GCC libquadmath

7. AGGREGATION WITH INDEPENDENT WORKS

A compilation o the Document or its derivatives with other separate and independentdocuments or works, in or on a volume o a storage or distribution medium, is called

an “aggregate” i the copyright resulting rom the compilation is not used to limit thelegal rights o the compilation’s users beyond what the individual works permit. Whenthe Document is included in an aggregate, this License does not apply to the otherworks in the aggregate which are not themselves derivative works o the Document.

I the Cover Text requirement o section 3 is applicable to these copies o the Document,then i the Document is less than one hal o the entire aggregate, the Document’s CoverTexts may be placed on covers that bracket the Document within the aggregate, or theelectronic equivalent o covers i the Document is in electronic orm. Otherwise theymust appear on printed covers that bracket the whole aggregate.

8. TRANSLATION

Translation is considered a kind o modication, so you may distribute translations

o the Document under the terms o section 4. Replacing Invariant Sections withtranslations requires special permission rom their copyright holders, but you mayinclude translations o some or all Invariant Sections in addition to the original versionso these Invariant Sections. You may include a translation o this License, and all thelicense notices in the Document, and any Warranty Disclaimers, provided that youalso include the original English version o this License and the original versions o those notices and disclaimers. In case o a disagreement between the translation andthe original version o this License or a notice or disclaimer, the original version willprevail.

I a section in the Document is Entitled “Acknowledgements”, “Dedications”, or “His-tory”, the requirement (section 4) to Preserve its Title (section 1) will typically require

changing the actual title.9. TERMINATION

You may not copy, modiy, sublicense, or distribute the Document except as expresslyprovided under this License. Any attempt otherwise to copy, modiy, sublicense, ordistribute it is void, and will automatically terminate your rights under this License.

However, i you cease all violation o this License, then your license rom a particularcopyright holder is reinstated (a) provisionally, unless and until the copyright holderexplicitly and nally terminates your license, and (b) permanently, i the copyrightholder ails to notiy you o the violation by some reasonable means prior to 60 daysater the cessation.

Moreover, your license rom a particular copyright holder is reinstated permanently i 

the copyright holder noties you o the violation by some reasonable means, this is therst time you have received notice o violation o this License (or any work) rom thatcopyright holder, and you cure the violation prior to 30 days ater your receipt o thenotice.

Termination o your rights under this section does not terminate the licenses o partieswho have received copies or rights rom you under this License. I your rights havebeen terminated and not permanently reinstated, receipt o a copy o some or all o thesame material does not give you any rights to use it.

Page 23: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 23/26

GNU Free Documentation License 17

10. FUTURE REVISIONS OF THIS LICENSE

The Free Sotware Foundation may publish new, revised versions o the GNU FreeDocumentation License rom time to time. Such new versions will be similar in spirit

to the present version, but may difer in detail to address new problems or concerns.See http://www.gnu.org/copyleft/.

Each version o the License is given a distinguishing version number. I the Documentspecies that a particular numbered version o this License “or any later version”applies to it, you have the option o ollowing the terms and conditions either o thatspecied version or o any later version that has been published (not as a drat) bythe Free Sotware Foundation. I the Document does not speciy a version number o this License, you may choose any version ever published (not as a drat) by the FreeSotware Foundation. I the Document species that a proxy can decide which utureversions o this License can be used, that proxy’s public statement o acceptance o aversion permanently authorizes you to choose that version or the Document.

11. RELICENSING

“Massive Multiauthor Collaboration Site” (or “MMC Site”) means any World WideWeb server that publishes copyrightable works and also provides prominent acilitiesor anybody to edit those works. A public wiki that anybody can edit is an example o such a server. A “Massive Multiauthor Collaboration” (or “MMC”) contained in thesite means any set o copyrightable works thus published on the MMC site.

“CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 license pub-lished by Creative Commons Corporation, a not-or-prot corporation with a principalplace o business in San Francisco, Caliornia, as well as uture copylet versions o thatlicense published by that same organization.

“Incorporate” means to publish or republish a Document, in whole or in part, as parto another Document.

An MMC is “eligible or relicensing” i it is licensed under this License, and i all worksthat were rst published under this License somewhere other than this MMC, andsubsequently incorporated in whole or in part into the MMC, (1) had no cover textsor invariant sections, and (2) were thus incorporated prior to November 1, 2008.

The operator o an MMC Site may republish an MMC contained in the site underCC-BY-SA on the same site at any time beore August 1, 2009, provided the MMC iseligible or relicensing.

Page 24: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 24/26

18 GCC libquadmath

ADDENDUM: How to use this License for your documents

To use this License in a document you have written, include a copy o the License in thedocument and put the ollowing copyright and license notices just ater the title page:

Copyright (C) year your name.Permission is granted to copy, distribute and/or modify this documentunder the terms of the GNU Free Documentation License, Version 1.3or any later version published by the Free Software Foundation;with no Invariant Sections, no Front-Cover Texts, and no Back-CoverTexts. A copy of the license is included in the section entitled ‘‘GNU

Free Documentation License’’.

I you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the“with...Texts.” line with this:

with the Invariant Sections being list their titles, withthe Front-Cover Texts being list, and with the Back-Cover Textsbeing list.

I you have Invariant Sections without Cover Texts, or some other combination o the

three, merge those two alternatives to suit the situation.I your document contains nontrivial examples o program code, we recommend releasing

these examples in parallel under your choice o ree sotware license, such as the GNUGeneral Public License, to permit their use in ree sotware.

Page 25: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 25/26

Chapter 4: Reporting Bugs 19

4 Reporting Bugs

Bugs in the GCC Quad-Precision Math Library implementation should be reported viahttp://gcc.gnu.org/bugs/.

Page 26: Lib Quad Math

7/16/2019 Lib Quad Math

http://slidepdf.com/reader/full/lib-quad-math 26/26