This file is indexed.

/usr/share/doc/gcc-5-base/libquadmath.html is in gcc-5-doc 5.3.1-14ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2010-2015 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with the Front-Cover Texts being "A GNU Manual,"
and with the Back-Cover Texts as in (a) below.  A copy of the
license is included in the section entitled "GNU Free Documentation
License."

(a) The FSF's Back-Cover Text is: "You have the freedom to
copy and modify this GNU manual. -->
<!-- Created by GNU Texinfo 6.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GCC libquadmath</title>

<meta name="description" content="GCC libquadmath">
<meta name="keywords" content="GCC libquadmath">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="#Top" rel="start" title="Top">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
<link href="dir.html#Top" rel="up" title="(dir)">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<h1 class="settitle" align="center">GCC libquadmath</h1>






<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>

<div class="shortcontents">
<ul class="no-bullet">
<li><a name="stoc-Typedef-and-constants-1" href="#toc-Typedef-and-constants-1">1 Typedef and constants</a></li>
<li><a name="stoc-Math-Library-Routines-1" href="#toc-Math-Library-Routines-1">2 Math Library Routines</a></li>
<li><a name="stoc-I_002fO-Library-Routines-1" href="#toc-I_002fO-Library-Routines-1">3 I/O Library Routines</a></li>
<li><a name="stoc-GNU-Free-Documentation-License-1" href="#toc-GNU-Free-Documentation-License-1">GNU Free Documentation License</a></li>
<li><a name="stoc-Reporting-Bugs-1" href="#toc-Reporting-Bugs-1">4 Reporting Bugs</a></li>
</ul>
</div>

<a name="SEC_Contents"></a>
<h2 class="contents-heading">Table of Contents</h2>

<div class="contents">

<ul class="no-bullet">
  <li><a name="toc-Typedef-and-constants-1" href="#Typedef-and-constants">1 Typedef and constants</a></li>
  <li><a name="toc-Math-Library-Routines-1" href="#Math-Library-Routines">2 Math Library Routines</a></li>
  <li><a name="toc-I_002fO-Library-Routines-1" href="#I_002fO-Library-Routines">3 I/O Library Routines</a>
  <ul class="no-bullet">
    <li><a name="toc-strtoflt128-_002d_002d_002d-Convert-from-string" href="#strtoflt128">3.1 <code>strtoflt128</code> &mdash; Convert from string</a></li>
    <li><a name="toc-quadmath_005fsnprintf-_002d_002d_002d-Convert-to-string" href="#quadmath_005fsnprintf">3.2 <code>quadmath_snprintf</code> &mdash; Convert to string</a></li>
  </ul></li>
  <li><a name="toc-GNU-Free-Documentation-License-1" href="#GNU-Free-Documentation-License">GNU Free Documentation License</a>
  <ul class="no-bullet">
    <li><a name="toc-ADDENDUM_003a-How-to-use-this-License-for-your-documents" href="#ADDENDUM_003a-How-to-use-this-License-for-your-documents">ADDENDUM: How to use this License for your documents</a></li>
  </ul></li>
  <li><a name="toc-Reporting-Bugs-1" href="#Reporting-Bugs">4 Reporting Bugs</a></li>
</ul>
</div>



<a name="Top"></a>
<div class="header">
<p>
Next: <a href="#Typedef-and-constants" accesskey="n" rel="next">Typedef and constants</a>, Up: <a href="dir.html#Top" accesskey="u" rel="up">(dir)</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="Introduction"></a>
<h1 class="top">Introduction</h1>
<a name="index-Introduction"></a>

<p>This manual documents the usage of libquadmath, the GCC Quad-Precision
Math Library Application Programming Interface (API).
</p>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">&bull; <a href="#Typedef-and-constants" accesskey="1">Typedef and constants</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Defined data types and constants
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="#Math-Library-Routines" accesskey="2">Math Library Routines</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">The Libquadmath math runtime application
                               programming interface.
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="#I_002fO-Library-Routines" accesskey="3">I/O Library Routines</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">The Libquadmath I/O runtime application
                               programming interface.
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="#GNU-Free-Documentation-License" accesskey="4">GNU Free Documentation License</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
                               How you can copy and share this manual.
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="#Reporting-Bugs" accesskey="5">Reporting Bugs</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">How to report bugs in GCC Libquadmath.
</td></tr>
</table>



<hr>
<a name="Typedef-and-constants"></a>
<div class="header">
<p>
Next: <a href="#Math-Library-Routines" accesskey="n" rel="next">Math Library Routines</a>, Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="Typedef-and-constants-1"></a>
<h2 class="chapter">1 Typedef and constants</h2>

<p>The following data type has been defined via <code>typedef</code>.
</p>
<dl compact="compact">
<dt><code>__complex128</code>: <code>__float128</code>-based complex number</dt>
</dl>

<p>The following macros are defined, which give the numeric limits of the
<code>__float128</code> data type.
</p>
<dl compact="compact">
<dt><code>FLT128_MAX</code>: largest finite number</dt>
<dt><code>FLT128_MIN</code>: smallest positive number with full precision</dt>
<dt><code>FLT128_EPSILON</code>: difference between 1 and the next larger</dt>
<dd><p>representable number
</p></dd>
<dt><code>FLT128_DENORM_MIN</code>: smallest positive denormalized number</dt>
<dt><code>FLT128_MANT_DIG</code>: number of digits in the mantissa (bit precision)</dt>
<dt><code>FLT128_MIN_EXP</code>: maximal negative exponent</dt>
<dt><code>FLT128_MAX_EXP</code>: maximal positive exponent</dt>
<dt><code>FLT128_DIG</code>: number of decimal digits in the mantissa</dt>
<dt><code>FLT128_MIN_10_EXP</code>: maximal negative decimal exponent</dt>
<dt><code>FLT128_MAX_10_EXP</code>: maximal positive decimal exponent</dt>
</dl>

<p>The following mathematical constants of type <code>__float128</code> are defined.
</p>
<dl compact="compact">
<dt><code>M_Eq</code>: the constant e (Euler&rsquo;s number)</dt>
<dt><code>M_LOG2Eq</code>: binary logarithm of 2</dt>
<dt><code>M_LOG10Eq</code>: common, decimal logarithm of 2</dt>
<dt><code>M_LN2q</code>: natural logarithm of 2</dt>
<dt><code>M_LN10q</code>: natural logarithm of 10</dt>
<dt><code>M_PIq</code>: pi</dt>
<dt><code>M_PI_2q</code>: pi divided by two</dt>
<dt><code>M_PI_4q</code>: pi divided by four</dt>
<dt><code>M_1_PIq</code>: one over pi</dt>
<dt><code>M_2_PIq</code>: one over two pi</dt>
<dt><code>M_2_SQRTPIq</code>: two over square root of pi</dt>
<dt><code>M_SQRT2q</code>: square root of 2</dt>
<dt><code>M_SQRT1_2q</code>: one over square root of 2</dt>
</dl>



<hr>
<a name="Math-Library-Routines"></a>
<div class="header">
<p>
Next: <a href="#I_002fO-Library-Routines" accesskey="n" rel="next">I/O Library Routines</a>, Previous: <a href="#Typedef-and-constants" accesskey="p" rel="prev">Typedef and constants</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="Math-Library-Routines-1"></a>
<h2 class="chapter">2 Math Library Routines</h2>

<p>The following mathematical functions are available:
</p>
<dl compact="compact">
<dt><code>acosq</code>: arc cosine function</dt>
<dt><code>acoshq</code>: inverse hyperbolic cosine function</dt>
<dt><code>asinq</code>: arc sine function</dt>
<dt><code>asinhq</code>: inverse hyperbolic sine function</dt>
<dt><code>atanq</code>: arc tangent function</dt>
<dt><code>atanhq</code>: inverse hyperbolic tangent function</dt>
<dt><code>atan2q</code>: arc tangent function</dt>
<dt><code>cbrtq</code>: cube root function</dt>
<dt><code>ceilq</code>: ceiling value function</dt>
<dt><code>copysignq</code>: copy sign of a number</dt>
<dt><code>coshq</code>: hyperbolic cosine function</dt>
<dt><code>cosq</code>: cosine function</dt>
<dt><code>erfq</code>: error function</dt>
<dt><code>erfcq</code>: complementary error function</dt>
<dt><code>expq</code>: exponential function</dt>
<dt><code>expm1q</code>: exponential minus 1 function</dt>
<dt><code>fabsq</code>: absolute value function</dt>
<dt><code>fdimq</code>: positive difference function</dt>
<dt><code>finiteq</code>: check finiteness of value</dt>
<dt><code>floorq</code>: floor value function</dt>
<dt><code>fmaq</code>: fused multiply and add</dt>
<dt><code>fmaxq</code>: determine maximum of two values</dt>
<dt><code>fminq</code>: determine minimum of two values</dt>
<dt><code>fmodq</code>: remainder value function</dt>
<dt><code>frexpq</code>: extract mantissa and exponent</dt>
<dt><code>hypotq</code>: Eucledian distance function</dt>
<dt><code>ilogbq</code>: get exponent of the value</dt>
<dt><code>isinfq</code>: check for infinity</dt>
<dt><code>isnanq</code>: check for not a number</dt>
<dt><code>j0q</code>: Bessel function of the first kind, first order</dt>
<dt><code>j1q</code>: Bessel function of the first kind, second order</dt>
<dt><code>jnq</code>: Bessel function of the first kind, <var>n</var>-th order</dt>
<dt><code>ldexpq</code>: load exponent of the value</dt>
<dt><code>lgammaq</code>: logarithmic gamma function</dt>
<dt><code>llrintq</code>: round to nearest integer value</dt>
<dt><code>llroundq</code>: round to nearest integer value away from zero</dt>
<dt><code>logq</code>: natural logarithm function</dt>
<dt><code>log10q</code>: base 10 logarithm function</dt>
<dt><code>log1pq</code>: compute natural logarithm of the value plus one</dt>
<dt><code>log2q</code>: base 2 logarithm function</dt>
<dt><code>lrintq</code>: round to nearest integer value</dt>
<dt><code>lroundq</code>: round to nearest integer value away from zero</dt>
<dt><code>modfq</code>: decompose the floating-point number</dt>
<dt><code>nanq</code>: return quiet NaN</dt>
<dt><code>nearbyintq</code>: round to nearest integer</dt>
<dt><code>nextafterq</code>: next representable floating-point number</dt>
<dt><code>powq</code>: power function</dt>
<dt><code>remainderq</code>: remainder function</dt>
<dt><code>remquoq</code>: remainder and part of quotient</dt>
<dt><code>rintq</code>: round-to-nearest integral value</dt>
<dt><code>roundq</code>: round-to-nearest integral value, return <code>__float128</code></dt>
<dt><code>scalblnq</code>: compute exponent using <code>FLT_RADIX</code></dt>
<dt><code>scalbnq</code>: compute exponent using <code>FLT_RADIX</code></dt>
<dt><code>signbitq</code>: return sign bit</dt>
<dt><code>sincosq</code>: calculate sine and cosine simultaneously</dt>
<dt><code>sinhq</code>: hyperbolic sine function</dt>
<dt><code>sinq</code>: sine function</dt>
<dt><code>sqrtq</code>: square root function</dt>
<dt><code>tanq</code>: tangent function</dt>
<dt><code>tanhq</code>: hyperbolic tangent function</dt>
<dt><code>tgammaq</code>: true gamma function</dt>
<dt><code>truncq</code>: round to integer, towards zero</dt>
<dt><code>y0q</code>: Bessel function of the second kind, first order</dt>
<dt><code>y1q</code>: Bessel function of the second kind, second order</dt>
<dt><code>ynq</code>: Bessel function of the second kind, <var>n</var>-th order</dt>
<dt><code>cabsq</code> complex absolute value function</dt>
<dt><code>cargq</code>: calculate the argument</dt>
<dt><code>cimagq</code> imaginary part of complex number</dt>
<dt><code>crealq</code>: real part of complex number</dt>
<dt><code>cacoshq</code>: complex arc hyperbolic cosine function</dt>
<dt><code>cacosq</code>: complex arc cosine function</dt>
<dt><code>casinhq</code>: complex arc hyperbolic sine function</dt>
<dt><code>casinq</code>: complex arc sine function</dt>
<dt><code>catanhq</code>: complex arc hyperbolic tangent function</dt>
<dt><code>catanq</code>: complex arc tangent function</dt>
<dt><code>ccosq</code> complex cosine function:</dt>
<dt><code>ccoshq</code>: complex hyperbolic cosine function</dt>
<dt><code>cexpq</code>: complex exponential function</dt>
<dt><code>cexpiq</code>: computes the exponential function of &ldquo;i&rdquo; times a</dt>
<dd><p>real value
</p></dd>
<dt><code>clogq</code>: complex natural logarithm</dt>
<dt><code>clog10q</code>: complex base 10 logarithm</dt>
<dt><code>conjq</code>: complex conjugate function</dt>
<dt><code>cpowq</code>: complex power function</dt>
<dt><code>cprojq</code>: project into Riemann Sphere</dt>
<dt><code>csinq</code>: complex sine function</dt>
<dt><code>csinhq</code>: complex hyperbolic sine function</dt>
<dt><code>csqrtq</code>: complex square root</dt>
<dt><code>ctanq</code>: complex tangent function</dt>
<dt><code>ctanhq</code>: complex hyperbolic tangent function</dt>
</dl>



<hr>
<a name="I_002fO-Library-Routines"></a>
<div class="header">
<p>
Next: <a href="#GNU-Free-Documentation-License" accesskey="n" rel="next">GNU Free Documentation License</a>, Previous: <a href="#Math-Library-Routines" accesskey="p" rel="prev">Math Library Routines</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="I_002fO-Library-Routines-1"></a>
<h2 class="chapter">3 I/O Library Routines</h2>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">&bull; <a href="#strtoflt128" accesskey="1"><code>strtoflt128</code></a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Convert from string
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="#quadmath_005fsnprintf" accesskey="2"><code>quadmath_snprintf</code></a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Convert to string
</td></tr>
</table>


<hr>
<a name="strtoflt128"></a>
<div class="header">
<p>
Next: <a href="#quadmath_005fsnprintf" accesskey="n" rel="next">quadmath_snprintf</a>, Up: <a href="#I_002fO-Library-Routines" accesskey="u" rel="up">I/O Library Routines</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="strtoflt128-_002d_002d_002d-Convert-from-string"></a>
<h3 class="section">3.1 <code>strtoflt128</code> &mdash; Convert from string</h3>

<p>The function <code>strtoflt128</code> converts a string into a
<code>__float128</code> number.
</p>
<dl compact="compact">
<dt>Syntax</dt>
<dd><p><code>__float128 strtoflt128 (const char *s, char **sp)</code>
</p>
</dd>
<dt><em>Arguments</em>:</dt>
<dd><table>
<tr><td width="15%"><var>s</var></td><td width="70%">input string</td></tr>
<tr><td width="15%"><var>sp</var></td><td width="70%">the address of the next character in the string</td></tr>
</table>

<p>The argument <var>sp</var> contains, if not <code>NULL</code>, the address of the
next character following the parts of the string, which have been read.
</p>
</dd>
<dt>Example</dt>
<dd><div class="smallexample">
<pre class="smallexample">#include &lt;quadmath.h&gt;

int main ()
{
  __float128 r;

  r = strtoflt128 (&quot;1.2345678&quot;, NULL);

  return 0;
}
</pre></div>
</dd>
</dl>


<hr>
<a name="quadmath_005fsnprintf"></a>
<div class="header">
<p>
Previous: <a href="#strtoflt128" accesskey="p" rel="prev">strtoflt128</a>, Up: <a href="#I_002fO-Library-Routines" accesskey="u" rel="up">I/O Library Routines</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="quadmath_005fsnprintf-_002d_002d_002d-Convert-to-string"></a>
<h3 class="section">3.2 <code>quadmath_snprintf</code> &mdash; Convert to string</h3>

<p>The function <code>quadmath_snprintf</code> converts a <code>__float128</code> floating-point
number into a string.  It is a specialized alternative to <code>snprintf</code>, where
the format string is restricted to a single conversion specifier with <code>Q</code>
modifier and conversion specifier <code>e</code>, <code>E</code>, <code>f</code>, <code>F</code>, <code>g</code>,
<code>G</code>, <code>a</code> or <code>A</code>, with no extra characters before or after the
conversion specifier.  The <code>%m$</code> or <code>*m$</code> style must not be used in
the format.
</p>
<dl compact="compact">
<dt>Syntax</dt>
<dd><p><code>int quadmath_snprintf (char *s, size_t size, const char *format, ...)</code>
</p>
</dd>
<dt><em>Arguments</em>:</dt>
<dd><table>
<tr><td width="15%"><var>s</var></td><td width="70%">output string</td></tr>
<tr><td width="15%"><var>size</var></td><td width="70%">byte size of the string, including tailing NUL</td></tr>
<tr><td width="15%"><var>format</var></td><td width="70%">conversion specifier string</td></tr>
</table>

</dd>
<dt>Note</dt>
<dd><p>On some targets when supported by the C library hooks are installed
for <code>printf</code> family of functions, so that <code>printf (&quot;%Qe&quot;, 1.2Q);</code>
etc. works too.
</p>
</dd>
<dt>Example</dt>
<dd><div class="smallexample">
<pre class="smallexample">#include &lt;quadmath.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;

int main ()
{
  __float128 r;
  int prec = 20;
  int width = 46;
  char buf[128];

  r = 2.0q;
  r = sqrtq (r);
  int n = quadmath_snprintf (buf, sizeof buf, &quot;%+-#*.20Qe&quot;, width, r);
  if ((size_t) n &lt; sizeof buf)
    printf (&quot;%s\n&quot;, buf);
    /* Prints: +1.41421356237309504880e+00 */
  quadmath_snprintf (buf, sizeof buf, &quot;%Qa&quot;, r);
  if ((size_t) n &lt; sizeof buf)
    printf (&quot;%s\n&quot;, buf);
    /* Prints: 0x1.6a09e667f3bcc908b2fb1366ea96p+0 */
  n = quadmath_snprintf (NULL, 0, &quot;%+-#46.*Qe&quot;, prec, r);
  if (n &gt; -1)
    {
      char *str = malloc (n + 1);
      if (str)
        {
          quadmath_snprintf (str, n + 1, &quot;%+-#46.*Qe&quot;, prec, r);
          printf (&quot;%s\n&quot;, str);
          /* Prints: +1.41421356237309504880e+00 */
        }
      free (str);
    }
  return 0;
}
</pre></div>

</dd>
</dl>



<hr>
<a name="GNU-Free-Documentation-License"></a>
<div class="header">
<p>
Next: <a href="#Reporting-Bugs" accesskey="n" rel="next">Reporting Bugs</a>, Previous: <a href="#I_002fO-Library-Routines" accesskey="p" rel="prev">I/O Library Routines</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="GNU-Free-Documentation-License-1"></a>
<h2 class="unnumbered">GNU Free Documentation License</h2>

<a name="index-FDL_002c-GNU-Free-Documentation-License"></a>
<div align="center">Version 1.3, 3 November 2008
</div>
<div class="display">
<pre class="display">Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
<a href="http://fsf.org/">http://fsf.org/</a>

Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
</pre></div>

<ol>
<li> PREAMBLE

<p>The purpose of this License is to make a manual, textbook, or other
functional and useful document <em>free</em> in the sense of freedom: to
assure everyone the effective freedom to copy and redistribute it,
with or without modifying it, either commercially or noncommercially.
Secondarily, this License preserves for the author and publisher a way
to get credit for their work, while not being considered responsible
for modifications made by others.
</p>
<p>This License is a kind of &ldquo;copyleft&rdquo;, which means that derivative
works of the document must themselves be free in the same sense.  It
complements the GNU General Public License, which is a copyleft
license designed for free software.
</p>
<p>We have designed this License in order to use it for manuals for free
software, because free software needs free documentation: a free
program should come with manuals providing the same freedoms that the
software does.  But this License is not limited to software manuals;
it can be used for any textual work, regardless of subject matter or
whether it is published as a printed book.  We recommend this License
principally for works whose purpose is instruction or reference.
</p>
</li><li> APPLICABILITY AND DEFINITIONS

<p>This License applies to any manual or other work, in any medium, that
contains a notice placed by the copyright holder saying it can be
distributed under the terms of this License.  Such a notice grants a
world-wide, royalty-free license, unlimited in duration, to use that
work under the conditions stated herein.  The &ldquo;Document&rdquo;, below,
refers to any such manual or work.  Any member of the public is a
licensee, and is addressed as &ldquo;you&rdquo;.  You accept the license if you
copy, modify or distribute the work in a way requiring permission
under copyright law.
</p>
<p>A &ldquo;Modified Version&rdquo; of the Document means any work containing the
Document or a portion of it, either copied verbatim, or with
modifications and/or translated into another language.
</p>
<p>A &ldquo;Secondary Section&rdquo; is a named appendix or a front-matter section
of the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document&rsquo;s overall
subject (or to related matters) and contains nothing that could fall
directly within that overall subject.  (Thus, if the Document is in
part a textbook of mathematics, a Secondary Section may not explain
any mathematics.)  The relationship could be a matter of historical
connection with the subject or with related matters, or of legal,
commercial, philosophical, ethical or political position regarding
them.
</p>
<p>The &ldquo;Invariant Sections&rdquo; are certain Secondary Sections whose titles
are designated, as being those of Invariant Sections, in the notice
that says that the Document is released under this License.  If a
section does not fit the above definition of Secondary then it is not
allowed to be designated as Invariant.  The Document may contain zero
Invariant Sections.  If the Document does not identify any Invariant
Sections then there are none.
</p>
<p>The &ldquo;Cover Texts&rdquo; are certain short passages of text that are listed,
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
the Document is released under this License.  A Front-Cover Text may
be at most 5 words, and a Back-Cover Text may be at most 25 words.
</p>
<p>A &ldquo;Transparent&rdquo; copy of the Document means a machine-readable copy,
represented in a format whose specification is available to the
general public, that is suitable for revising the document
straightforwardly with generic text editors or (for images composed of
pixels) generic paint programs or (for drawings) some widely available
drawing editor, and that is suitable for input to text formatters or
for automatic translation to a variety of formats suitable for input
to text formatters.  A copy made in an otherwise Transparent file
format whose markup, or absence of markup, has been arranged to thwart
or discourage subsequent modification by readers is not Transparent.
An image format is not Transparent if used for any substantial amount
of text.  A copy that is not &ldquo;Transparent&rdquo; is called &ldquo;Opaque&rdquo;.
</p>
<p>Examples of suitable formats for Transparent copies include plain
<small>ASCII</small> without markup, Texinfo input format, LaTeX input
format, <acronym>SGML</acronym> or <acronym>XML</acronym> using a publicly available
<acronym>DTD</acronym>, and standard-conforming simple <acronym>HTML</acronym>,
PostScript or <acronym>PDF</acronym> designed for human modification.  Examples
of transparent image formats include <acronym>PNG</acronym>, <acronym>XCF</acronym> and
<acronym>JPG</acronym>.  Opaque formats include proprietary formats that can be
read and edited only by proprietary word processors, <acronym>SGML</acronym> or
<acronym>XML</acronym> for which the <acronym>DTD</acronym> and/or processing tools are
not generally available, and the machine-generated <acronym>HTML</acronym>,
PostScript or <acronym>PDF</acronym> produced by some word processors for
output purposes only.
</p>
<p>The &ldquo;Title Page&rdquo; means, for a printed book, the title page itself,
plus such following pages as are needed to hold, legibly, the material
this License requires to appear in the title page.  For works in
formats which do not have any title page as such, &ldquo;Title Page&rdquo; means
the text near the most prominent appearance of the work&rsquo;s title,
preceding the beginning of the body of the text.
</p>
<p>The &ldquo;publisher&rdquo; means any person or entity that distributes copies
of the Document to the public.
</p>
<p>A section &ldquo;Entitled XYZ&rdquo; means a named subunit of the Document whose
title either is precisely XYZ or contains XYZ in parentheses following
text that translates XYZ in another language.  (Here XYZ stands for a
specific section name mentioned below, such as &ldquo;Acknowledgements&rdquo;,
&ldquo;Dedications&rdquo;, &ldquo;Endorsements&rdquo;, or &ldquo;History&rdquo;.)  To &ldquo;Preserve the Title&rdquo;
of such a section when you modify the Document means that it remains a
section &ldquo;Entitled XYZ&rdquo; according to this definition.
</p>
<p>The Document may include Warranty Disclaimers next to the notice which
states that this License applies to the Document.  These Warranty
Disclaimers are considered to be included by reference in this
License, but only as regards disclaiming warranties: any other
implication that these Warranty Disclaimers may have is void and has
no effect on the meaning of this License.
</p>
</li><li> VERBATIM COPYING

<p>You may copy and distribute the Document in any medium, either
commercially or noncommercially, provided that this License, the
copyright notices, and the license notice saying this License applies
to the Document are reproduced in all copies, and that you add no other
conditions whatsoever to those of this License.  You may not use
technical measures to obstruct or control the reading or further
copying of the copies you make or distribute.  However, you may accept
compensation in exchange for copies.  If you distribute a large enough
number of copies you must also follow the conditions in section 3.
</p>
<p>You may also lend copies, under the same conditions stated above, and
you may publicly display copies.
</p>
</li><li> COPYING IN QUANTITY

<p>If you publish printed copies (or copies in media that commonly have
printed covers) of the Document, numbering more than 100, and the
Document&rsquo;s license notice requires Cover Texts, you must enclose the
copies in covers that carry, clearly and legibly, all these Cover
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
the back cover.  Both covers must also clearly and legibly identify
you as the publisher of these copies.  The front cover must present
the full title with all words of the title equally 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 of the Document and satisfy these conditions, can be treated
as verbatim copying in other respects.
</p>
<p>If the required texts for either cover are too voluminous to fit
legibly, you should put the first ones listed (as many as fit
reasonably) on the actual cover, and continue the rest onto adjacent
pages.
</p>
<p>If you publish or distribute Opaque copies of 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 from which the general network-using
public has access to download using public-standard network protocols
a complete Transparent copy of the Document, free of added material.
If you use the latter option, you must take reasonably prudent steps,
when you begin distribution of Opaque copies in quantity, to ensure
that this Transparent copy will remain thus accessible at the stated
location until at least one year after the last time you distribute an
Opaque copy (directly or through your agents or retailers) of that
edition to the public.
</p>
<p>It is requested, but not required, that you contact the authors of the
Document well before redistributing any large number of copies, to give
them a chance to provide you with an updated version of the Document.
</p>
</li><li> MODIFICATIONS

<p>You may copy and distribute a Modified Version of the Document under
the conditions of sections 2 and 3 above, provided that you release
the Modified Version under precisely this License, with the Modified
Version filling the role of the Document, thus licensing distribution
and modification of the Modified Version to whoever possesses a copy
of it.  In addition, you must do these things in the Modified Version:
</p>
<ol>
<li> Use in the Title Page (and on the covers, if any) a title distinct
from that of the Document, and from those of previous versions
(which should, if there were any, be listed in the History section
of the Document).  You may use the same title as a previous version
if the original publisher of that version gives permission.

</li><li> List on the Title Page, as authors, one or more persons or entities
responsible for authorship of the modifications in the Modified
Version, together with at least five of the principal authors of the
Document (all of its principal authors, if it has fewer than five),
unless they release you from this requirement.

</li><li> State on the Title page the name of the publisher of the
Modified Version, as the publisher.

</li><li> Preserve all the copyright notices of the Document.

</li><li> Add an appropriate copyright notice for your modifications
adjacent to the other copyright notices.

</li><li> Include, immediately after the copyright notices, a license notice
giving the public permission to use the Modified Version under the
terms of this License, in the form shown in the Addendum below.

</li><li> Preserve in that license notice the full lists of Invariant Sections
and required Cover Texts given in the Document&rsquo;s license notice.

</li><li> Include an unaltered copy of this License.

</li><li> Preserve the section Entitled &ldquo;History&rdquo;, Preserve its Title, and add
to it an item stating at least the title, year, new authors, and
publisher of the Modified Version as given on the Title Page.  If
there is no section Entitled &ldquo;History&rdquo; in the Document, create one
stating the title, year, authors, and publisher of the Document as
given on its Title Page, then add an item describing the Modified
Version as stated in the previous sentence.

</li><li> Preserve the network location, if any, given in the Document for
public access to a Transparent copy of the Document, and likewise
the network locations given in the Document for previous versions
it was based on.  These may be placed in the &ldquo;History&rdquo; section.
You may omit a network location for a work that was published at
least four years before the Document itself, or if the original
publisher of the version it refers to gives permission.

</li><li> For any section Entitled &ldquo;Acknowledgements&rdquo; or &ldquo;Dedications&rdquo;, Preserve
the Title of the section, and preserve in the section all the
substance and tone of each of the contributor acknowledgements and/or
dedications given therein.

</li><li> Preserve all the Invariant Sections of the Document,
unaltered in their text and in their titles.  Section numbers
or the equivalent are not considered part of the section titles.

</li><li> Delete any section Entitled &ldquo;Endorsements&rdquo;.  Such a section
may not be included in the Modified Version.

</li><li> Do not retitle any existing section to be Entitled &ldquo;Endorsements&rdquo; or
to conflict in title with any Invariant Section.

</li><li> Preserve any Warranty Disclaimers.
</li></ol>

<p>If the Modified Version includes new front-matter sections or
appendices that qualify as Secondary Sections and contain no material
copied from the Document, you may at your option designate some or all
of these sections as invariant.  To do this, add their titles to the
list of Invariant Sections in the Modified Version&rsquo;s license notice.
These titles must be distinct from any other section titles.
</p>
<p>You may add a section Entitled &ldquo;Endorsements&rdquo;, provided it contains
nothing but endorsements of your Modified Version by various
parties&mdash;for example, statements of peer review or that the text has
been approved by an organization as the authoritative definition of a
standard.
</p>
<p>You may add a passage of up to five words as a Front-Cover Text, and a
passage of up to 25 words as a Back-Cover Text, to the end of the list
of Cover Texts in the Modified Version.  Only one passage of
Front-Cover Text and one of Back-Cover Text may be added by (or
through arrangements made by) any one entity.  If the Document already
includes a cover text for the same cover, previously added by you or
by arrangement made by the same entity you are acting on behalf of,
you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.
</p>
<p>The author(s) and publisher(s) of the Document do not by this License
give permission to use their names for publicity for or to assert or
imply endorsement of any Modified Version.
</p>
</li><li> COMBINING DOCUMENTS

<p>You may combine the Document with other documents released under this
License, under the terms defined in section 4 above for modified
versions, provided that you include in the combination all of the
Invariant Sections of all of the original documents, unmodified, and
list them all as Invariant Sections of your combined work in its
license notice, and that you preserve all their Warranty Disclaimers.
</p>
<p>The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be replaced with a single
copy.  If there are multiple Invariant Sections with the same name but
different contents, make the title of each such section unique by
adding at the end of it, in parentheses, the name of the original
author or publisher of that section if known, or else a unique number.
Make the same adjustment to the section titles in the list of
Invariant Sections in the license notice of the combined work.
</p>
<p>In the combination, you must combine any sections Entitled &ldquo;History&rdquo;
in the various original documents, forming one section Entitled
&ldquo;History&rdquo;; likewise combine any sections Entitled &ldquo;Acknowledgements&rdquo;,
and any sections Entitled &ldquo;Dedications&rdquo;.  You must delete all
sections Entitled &ldquo;Endorsements.&rdquo;
</p>
</li><li> COLLECTIONS OF DOCUMENTS

<p>You may make a collection consisting of the Document and other documents
released under this License, and replace the individual copies of this
License in the various documents with a single copy that is included in
the collection, provided that you follow the rules of this License for
verbatim copying of each of the documents in all other respects.
</p>
<p>You may extract a single document from such a collection, and distribute
it individually under this License, provided you insert a copy of this
License into the extracted document, and follow this License in all
other respects regarding verbatim copying of that document.
</p>
</li><li> AGGREGATION WITH INDEPENDENT WORKS

<p>A compilation of the Document or its derivatives with other separate
and independent documents or works, in or on a volume of a storage or
distribution medium, is called an &ldquo;aggregate&rdquo; if the copyright
resulting from the compilation is not used to limit the legal rights
of the compilation&rsquo;s users beyond what the individual works permit.
When the Document is included in an aggregate, this License does not
apply to the other works in the aggregate which are not themselves
derivative works of the Document.
</p>
<p>If the Cover Text requirement of section 3 is applicable to these
copies of the Document, then if the Document is less than one half of
the entire aggregate, the Document&rsquo;s Cover Texts may be placed on
covers that bracket the Document within the aggregate, or the
electronic equivalent of covers if the Document is in electronic form.
Otherwise they must appear on printed covers that bracket the whole
aggregate.
</p>
</li><li> TRANSLATION

<p>Translation is considered a kind of modification, so you may
distribute translations of the Document under the terms of section 4.
Replacing Invariant Sections with translations requires special
permission from their copyright holders, but you may include
translations of some or all Invariant Sections in addition to the
original versions of these Invariant Sections.  You may include a
translation of this License, and all the license notices in the
Document, and any Warranty Disclaimers, provided that you also include
the original English version of this License and the original versions
of those notices and disclaimers.  In case of a disagreement between
the translation and the original version of this License or a notice
or disclaimer, the original version will prevail.
</p>
<p>If a section in the Document is Entitled &ldquo;Acknowledgements&rdquo;,
&ldquo;Dedications&rdquo;, or &ldquo;History&rdquo;, the requirement (section 4) to Preserve
its Title (section 1) will typically require changing the actual
title.
</p>
</li><li> TERMINATION

<p>You may not copy, modify, sublicense, or distribute the Document
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense, or distribute it is void, and
will automatically terminate your rights under this License.
</p>
<p>However, if you cease all violation of this License, then your license
from a particular copyright holder is reinstated (a) provisionally,
unless and until the copyright holder explicitly and finally
terminates your license, and (b) permanently, if the copyright holder
fails to notify you of the violation by some reasonable means prior to
60 days after the cessation.
</p>
<p>Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
</p>
<p>Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, receipt of a copy of some or all of the same material does
not give you any rights to use it.
</p>
</li><li> FUTURE REVISIONS OF THIS LICENSE

<p>The Free Software Foundation may publish new, revised versions
of the GNU Free Documentation License from time to time.  Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.  See
<a href="http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</a>.
</p>
<p>Each version of the License is given a distinguishing version number.
If the Document specifies that a particular numbered version of this
License &ldquo;or any later version&rdquo; applies to it, you have the option of
following the terms and conditions either of that specified version or
of any later version that has been published (not as a draft) by the
Free Software Foundation.  If the Document does not specify a version
number of this License, you may choose any version ever published (not
as a draft) by the Free Software Foundation.  If the Document
specifies that a proxy can decide which future versions of this
License can be used, that proxy&rsquo;s public statement of acceptance of a
version permanently authorizes you to choose that version for the
Document.
</p>
</li><li> RELICENSING

<p>&ldquo;Massive Multiauthor Collaboration Site&rdquo; (or &ldquo;MMC Site&rdquo;) means any
World Wide Web server that publishes copyrightable works and also
provides prominent facilities for anybody to edit those works.  A
public wiki that anybody can edit is an example of such a server.  A
&ldquo;Massive Multiauthor Collaboration&rdquo; (or &ldquo;MMC&rdquo;) contained in the
site means any set of copyrightable works thus published on the MMC
site.
</p>
<p>&ldquo;CC-BY-SA&rdquo; means the Creative Commons Attribution-Share Alike 3.0
license published by Creative Commons Corporation, a not-for-profit
corporation with a principal place of business in San Francisco,
California, as well as future copyleft versions of that license
published by that same organization.
</p>
<p>&ldquo;Incorporate&rdquo; means to publish or republish a Document, in whole or
in part, as part of another Document.
</p>
<p>An MMC is &ldquo;eligible for relicensing&rdquo; if it is licensed under this
License, and if all works that were first published under this License
somewhere other than this MMC, and subsequently incorporated in whole
or in part into the MMC, (1) had no cover texts or invariant sections,
and (2) were thus incorporated prior to November 1, 2008.
</p>
<p>The operator of an MMC Site may republish an MMC contained in the site
under CC-BY-SA on the same site at any time before August 1, 2009,
provided the MMC is eligible for relicensing.
</p>
</li></ol>

<a name="ADDENDUM_003a-How-to-use-this-License-for-your-documents"></a>
<h3 class="unnumberedsec">ADDENDUM: How to use this License for your documents</h3>

<p>To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and
license notices just after the title page:
</p>
<div class="smallexample">
<pre class="smallexample">  Copyright (C)  <var>year</var>  <var>your name</var>.
  Permission is granted to copy, distribute and/or modify this document
  under the terms of the GNU Free Documentation License, Version 1.3
  or any later version published by the Free Software Foundation;
  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  Texts.  A copy of the license is included in the section entitled ``GNU
  Free Documentation License''.
</pre></div>

<p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
replace the &ldquo;with...Texts.&rdquo; line with this:
</p>
<div class="smallexample">
<pre class="smallexample">    with the Invariant Sections being <var>list their titles</var>, with
    the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts
    being <var>list</var>.
</pre></div>

<p>If you have Invariant Sections without Cover Texts, or some other
combination of the three, merge those two alternatives to suit the
situation.
</p>
<p>If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.
</p>




<hr>
<a name="Reporting-Bugs"></a>
<div class="header">
<p>
Previous: <a href="#GNU-Free-Documentation-License" accesskey="p" rel="prev">GNU Free Documentation License</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<a name="Reporting-Bugs-1"></a>
<h2 class="chapter">4 Reporting Bugs</h2>

<p>Bugs in the GCC Quad-Precision Math Library implementation should be
reported via <a href="file:///usr/share/doc/gcc-5/README.Bugs">file:///usr/share/doc/gcc-5/README.Bugs</a>.
</p>



<hr>



</body>
</html>