This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi! On Fri, 5 Apr 2013 16:18:34 -0700, Roland McGrath <roland@hack.frob.com> wrote: > > +static volatile double snanval = __builtin_nans(""); > > +static volatile double msnanval = -__builtin_nans(""); > > +static volatile long double lsnanval = __builtin_nansl(""); > > +static volatile long double lmsnanval = -__builtin_nansl(""); > > Space before paren. Sorry for that. Pushed in commit 207d1e2a6c4c72a1a6154ae9800e8061669995a5: * stdio-common/tstdiomisc.c: Fix coding-style violation. diff --git stdio-common/tstdiomisc.c stdio-common/tstdiomisc.c index 5c046bb..5a25ecc 100644 --- stdio-common/tstdiomisc.c +++ stdio-common/tstdiomisc.c @@ -50,10 +50,10 @@ volatile double qnanval; volatile long double lqnanval; /* A sNaN is only guaranteed to be representable in variables with static (or thread-local) storage duration. */ -static volatile double snanval = __builtin_nans(""); -static volatile double msnanval = -__builtin_nans(""); -static volatile long double lsnanval = __builtin_nansl(""); -static volatile long double lmsnanval = -__builtin_nansl(""); +static volatile double snanval = __builtin_nans (""); +static volatile double msnanval = -__builtin_nans (""); +static volatile long double lsnanval = __builtin_nansl (""); +static volatile long double lmsnanval = -__builtin_nansl (""); volatile double infval; volatile long double linfval; > Does gcc 4.3 support those builtins? Yes: 2002-09-16 Richard Henderson <rth@redhat.com> * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New. (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New. * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New. (__builtin_nans, __builtin_nansf, __builtin_nansl): New. * builtins.c (fold_builtin_nan): New. (fold_builtin): Call it. * real.c (real_nan): Parse a non-empty string. (round_for_format): Fix NaN significand truncation. * real.h (real_nan): Return bool. * doc/extend.texi: Document new builtins. GrÃÃe, Thomas
Attachment:
pgpKjPEl83bgz.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |