diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-16 16:42:37 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-16 16:42:37 +0000 |
commit | b12676a5853278cf006fbc0908d35cb9d5ba7adc (patch) | |
tree | d5f9fa3730934400e8a107bce022ccd7da1bcf83 /libquadmath/quadmath.h | |
parent | bcaa791fa18f28ae60c3bb1adc2594749123a026 (diff) | |
download | gcc-b12676a5853278cf006fbc0908d35cb9d5ba7adc.tar.gz |
PR fortran/46416
* quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
New prototypes.
(M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
* quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
catanhq): Add.
* quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
* quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
catanq and catanhq.
* Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
and math/catanhq.c.
* Makefile.in: Regenerated.
* libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
catanq, catanhq): Add.
* math/cacoshq.c: New file.
* math/cacosq.c: New file.
* math/catanq.c: New file.
* math/catanhq.c: New file.
* math/casinq.c: New file.
* math/casinhq.c: New file.
* math/hypotq.c (hypotq): Use Q suffix instead of L.
* math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
* math/cosq.c (cosq): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168853 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libquadmath/quadmath.h')
-rw-r--r-- | libquadmath/quadmath.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libquadmath/quadmath.h b/libquadmath/quadmath.h index 5fe9549d376..bc413375560 100644 --- a/libquadmath/quadmath.h +++ b/libquadmath/quadmath.h @@ -90,6 +90,12 @@ extern __float128 ynq (int, __float128); // Prototypes for complex functions extern __float128 cabsq (__complex128); extern __float128 cargq (__complex128); +extern __complex128 cacosq (__complex128); +extern __complex128 cacoshq (__complex128); +extern __complex128 casinq (__complex128); +extern __complex128 casinhq (__complex128); +extern __complex128 catanq (__complex128); +extern __complex128 catanhq (__complex128); extern __complex128 ccosq (__complex128); extern __complex128 ccoshq (__complex128); extern __complex128 cexpq (__complex128); @@ -126,4 +132,18 @@ extern void quadmath_dtoaq (char *, size_t, size_t, __float128); (floating constant exceeds range of ‘__float128’) */ /* #define HUGE_VALQ (__extension__ 0x1.0p32767Q) */ +#define M_Eq 2.7182818284590452353602874713526625Q /* e */ +#define M_LOG2Eq 1.4426950408889634073599246810018921Q /* log_2 e */ +#define M_LOG10Eq 0.4342944819032518276511289189166051Q /* log_10 e */ +#define M_LN2q 0.6931471805599453094172321214581766Q /* log_e 2 */ +#define M_LN10q 2.3025850929940456840179914546843642Q /* log_e 10 */ +#define M_PIq 3.1415926535897932384626433832795029Q /* pi */ +#define M_PI_2q 1.5707963267948966192313216916397514Q /* pi/2 */ +#define M_PI_4q 0.7853981633974483096156608458198757Q /* pi/4 */ +#define M_1_PIq 0.3183098861837906715377675267450287Q /* 1/pi */ +#define M_2_PIq 0.6366197723675813430755350534900574Q /* 2/pi */ +#define M_2_SQRTPIq 1.1283791670955125738961589031215452Q /* 2/sqrt(pi) */ +#define M_SQRT2q 1.4142135623730950488016887242096981Q /* sqrt(2) */ +#define M_SQRT1_2q 0.7071067811865475244008443621048490Q /* 1/sqrt(2) */ + #endif |