Mercurial > hg > CbC > CbC_gcc
comparison libquadmath/libquadmath.texi @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 561a7518be6b |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
4 @setfilename libquadmath.info | 4 @setfilename libquadmath.info |
5 @settitle GCC libquadmath | 5 @settitle GCC libquadmath |
6 @c %**end of header | 6 @c %**end of header |
7 | 7 |
8 @copying | 8 @copying |
9 Copyright @copyright{} 2010 Free Software Foundation, Inc. | 9 Copyright @copyright{} 2010-2017 Free Software Foundation, Inc. |
10 | 10 |
11 @quotation | 11 @quotation |
12 Permission is granted to copy, distribute and/or modify this document | 12 Permission is granted to copy, distribute and/or modify this document |
13 under the terms of the GNU Free Documentation License, Version 1.2 or | 13 under the terms of the GNU Free Documentation License, Version 1.2 or |
14 any later version published by the Free Software Foundation; with no | 14 any later version published by the Free Software Foundation; with no |
121 @item @code{M_LOG2Eq}: binary logarithm of 2 | 121 @item @code{M_LOG2Eq}: binary logarithm of 2 |
122 @item @code{M_LOG10Eq}: common, decimal logarithm of 2 | 122 @item @code{M_LOG10Eq}: common, decimal logarithm of 2 |
123 @item @code{M_LN2q}: natural logarithm of 2 | 123 @item @code{M_LN2q}: natural logarithm of 2 |
124 @item @code{M_LN10q}: natural logarithm of 10 | 124 @item @code{M_LN10q}: natural logarithm of 10 |
125 @item @code{M_PIq}: pi | 125 @item @code{M_PIq}: pi |
126 @item @code{M_PI_2q}: two pi | 126 @item @code{M_PI_2q}: pi divided by two |
127 @item @code{M_PI_4q}: four pi | 127 @item @code{M_PI_4q}: pi divided by four |
128 @item @code{M_1_PIq}: one over pi | 128 @item @code{M_1_PIq}: one over pi |
129 @item @code{M_2_PIq}: one over two pi | 129 @item @code{M_2_PIq}: one over two pi |
130 @item @code{M_2_SQRTPIq}: two over square root of pi | 130 @item @code{M_2_SQRTPIq}: two over square root of pi |
131 @item @code{M_SQRT2q}: square root of 2 | 131 @item @code{M_SQRT2q}: square root of 2 |
132 @item @code{M_SQRT1_2q}: one over square root of 2 | 132 @item @code{M_SQRT1_2q}: one over square root of 2 |
178 @item @code{jnq}: Bessel function of the first kind, @var{n}-th order | 178 @item @code{jnq}: Bessel function of the first kind, @var{n}-th order |
179 @item @code{ldexpq}: load exponent of the value | 179 @item @code{ldexpq}: load exponent of the value |
180 @item @code{lgammaq}: logarithmic gamma function | 180 @item @code{lgammaq}: logarithmic gamma function |
181 @item @code{llrintq}: round to nearest integer value | 181 @item @code{llrintq}: round to nearest integer value |
182 @item @code{llroundq}: round to nearest integer value away from zero | 182 @item @code{llroundq}: round to nearest integer value away from zero |
183 @item @code{logbq}: get exponent of the value | |
183 @item @code{logq}: natural logarithm function | 184 @item @code{logq}: natural logarithm function |
184 @item @code{log10q}: base 10 logarithm function | 185 @item @code{log10q}: base 10 logarithm function |
185 @item @code{log1pq}: compute natural logarithm of the value plus one | 186 @item @code{log1pq}: compute natural logarithm of the value plus one |
186 @item @code{log2q}: base 2 logarithm function | 187 @item @code{log2q}: base 2 logarithm function |
187 @need 800 | 188 @need 800 |
197 @item @code{rintq}: round-to-nearest integral value | 198 @item @code{rintq}: round-to-nearest integral value |
198 @item @code{roundq}: round-to-nearest integral value, return @code{__float128} | 199 @item @code{roundq}: round-to-nearest integral value, return @code{__float128} |
199 @item @code{scalblnq}: compute exponent using @code{FLT_RADIX} | 200 @item @code{scalblnq}: compute exponent using @code{FLT_RADIX} |
200 @item @code{scalbnq}: compute exponent using @code{FLT_RADIX} | 201 @item @code{scalbnq}: compute exponent using @code{FLT_RADIX} |
201 @item @code{signbitq}: return sign bit | 202 @item @code{signbitq}: return sign bit |
202 @item @code{sincosq}: calculate sine and cosine simulataneously | 203 @item @code{sincosq}: calculate sine and cosine simultaneously |
203 @item @code{sinhq}: hyperbolic sine function | 204 @item @code{sinhq}: hyperbolic sine function |
204 @item @code{sinq}: sine function | 205 @item @code{sinq}: sine function |
205 @item @code{sqrtq}: square root function | 206 @item @code{sqrtq}: square root function |
206 @item @code{tanq}: tangent function | 207 @item @code{tanq}: tangent function |
207 @item @code{tanhq}: hyperbolic tangent function | 208 @item @code{tanhq}: hyperbolic tangent function |
254 | 255 |
255 | 256 |
256 @node strtoflt128 | 257 @node strtoflt128 |
257 @section @code{strtoflt128} --- Convert from string | 258 @section @code{strtoflt128} --- Convert from string |
258 | 259 |
259 The function @code{dmath_strtopQ} converts a string into a | 260 The function @code{strtoflt128} converts a string into a |
260 @code{__float128} number. | 261 @code{__float128} number. |
261 | 262 |
262 @table @asis | 263 @table @asis |
263 @item Syntax | 264 @item Syntax |
264 @code{__float128 strtoflt128 (const char *s, char **sp)} | 265 @code{__float128 strtoflt128 (const char *s, char **sp)} |
307 @multitable @columnfractions .15 .70 | 308 @multitable @columnfractions .15 .70 |
308 @item @var{s} @tab output string | 309 @item @var{s} @tab output string |
309 @item @var{size} @tab byte size of the string, including tailing NUL | 310 @item @var{size} @tab byte size of the string, including tailing NUL |
310 @item @var{format} @tab conversion specifier string | 311 @item @var{format} @tab conversion specifier string |
311 @end multitable | 312 @end multitable |
313 | |
314 @item Note | |
315 On some targets when supported by the C library hooks are installed | |
316 for @code{printf} family of functions, so that @code{printf ("%Qe", 1.2Q);} | |
317 etc.@: works too. | |
312 | 318 |
313 @item Example | 319 @item Example |
314 @smallexample | 320 @smallexample |
315 #include <quadmath.h> | 321 #include <quadmath.h> |
316 #include <stdlib.h> | 322 #include <stdlib.h> |
349 @} | 355 @} |
350 @end smallexample | 356 @end smallexample |
351 | 357 |
352 @end table | 358 @end table |
353 | 359 |
354 On some targets when supported by the C library hooks are installed | |
355 for @code{printf} family of functions, so that @code{printf ("%Qe", 1.2Q);} | |
356 etc.@: works too. | |
357 | |
358 | 360 |
359 @c --------------------------------------------------------------------- | 361 @c --------------------------------------------------------------------- |
360 @c GNU Free Documentation License | 362 @c GNU Free Documentation License |
361 @c --------------------------------------------------------------------- | 363 @c --------------------------------------------------------------------- |
362 | 364 |