[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: isnanl: recognize non-IEEE numbers
From: |
James Youngman |
Subject: |
Re: isnanl: recognize non-IEEE numbers |
Date: |
Wed, 6 Jun 2007 09:03:24 +0100 |
On 6/6/07, Bruno Haible <address@hidden> wrote:
+ { /* Unnormalized number. */
+ static memory_long_double x =
+ { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
+ ASSERT (isnanl (x.value));
+ }
+ { /* Pseudo-Denormal. */
+ static memory_long_double x =
+ { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
+ ASSERT (isnanl (x.value));
+ }
+ #endif
+
It might be more helpful to use meaningful variable names for your
constants here, because that way the error message you get when the
assert fails tells you which test has gone wrong. Otherwise, you will
have to compare line numbers, and risk wasting time due to line number
skew between yourself and a possible problem-reporter.
James.