public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47295] New: libquadmath: List __complex128 and constants in the .texi file
@ 2011-01-14 16:34 burnus at gcc dot gnu.org
  2011-01-15  7:07 ` [Bug fortran/47295] " kargl at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-01-14 16:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47295

           Summary: libquadmath: List __complex128 and constants in the
                    .texi file
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


libquadmath.h contains a typedef and several macros (constants), which should
be listed in the documentation.

typedef _Complex float __attribute__((mode(TC))) __complex128;

// Macros
#define FLT128_MAX 1.18973149535723176508575932662800702e4932Q
#define FLT128_MIN 3.36210314311209350626267781732175260e-4932Q
#define FLT128_EPSILON 1.92592994438723585305597794258492732e-34Q
#define FLT128_DENORM_MIN 6.475175119438025110924438958227646552e-4966Q
#define FLT128_MANT_DIG 113
#define FLT128_MIN_EXP (-16381)
#define FLT128_MAX_EXP 16384
// TODO -- One day, we need to add the following macros:
// FLT128_DIG, FLT128_MIN_10_EXP, FLT128_MAX_10_EXP

#define HUGE_VALQ __builtin_huge_valq()


The math constants are added via
http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00332.html

+#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) */


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-17 19:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14 16:34 [Bug fortran/47295] New: libquadmath: List __complex128 and constants in the .texi file burnus at gcc dot gnu.org
2011-01-15  7:07 ` [Bug fortran/47295] " kargl at gcc dot gnu.org
2011-01-15 19:28 ` burnus at gcc dot gnu.org
2011-01-15 22:44 ` sgk at troutmask dot apl.washington.edu
2011-01-17 19:38 ` burnus at gcc dot gnu.org
2011-01-17 19:56 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).