+2023-10-15 Bruno Haible <bruno@clisp.org>
+
+ snan: Simplify a type.
+ * lib/snan.h (memory_long_double): Put the 'value' field first.
+ * tests/test-totalorder.h (main): No need for designated initializer
+ syntax any more.
+
2023-10-15 Bruno Haible <bruno@clisp.org>
vma-iter: Fix compilation error on FreeBSD 5.2.1.
#define NWORDS \
((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
-typedef union { unsigned int word[NWORDS]; long double value; }
+typedef union { long double value; unsigned int word[NWORDS]; }
memory_long_double;
#if defined LDBL_EXPBIT0_WORD && defined LDBL_EXPBIT0_BIT
{
TOTALORDER_TYPE x[] =
{
- { .value = TOTALORDER_NEGATIVE_NAN () },
+ { TOTALORDER_NEGATIVE_NAN () },
#if TOTALORDER_HAVE_SNAN
TOTALORDER_NEGATIVE_SNAN (),
#endif
- { .value = -TOTALORDER_INF () },
- { .value = -1e37 },
- { .value = -1 },
- { .value = -1e-5 },
- { .value = TOTALORDER_MINUS_ZERO },
- { .value = 0 },
- { .value = 1e-5 },
- { .value = 1 },
- { .value = 1e37 },
- { .value = TOTALORDER_INF () },
+ { -TOTALORDER_INF () },
+ { -1e37 },
+ { -1 },
+ { -1e-5 },
+ { TOTALORDER_MINUS_ZERO },
+ { 0 },
+ { 1e-5 },
+ { 1 },
+ { 1e37 },
+ { TOTALORDER_INF () },
#if TOTALORDER_HAVE_SNAN
TOTALORDER_POSITIVE_SNAN (),
#endif
- { .value = TOTALORDER_POSITIVE_NAN () }
+ { TOTALORDER_POSITIVE_NAN () }
};
int n = SIZEOF (x);
int result = 0;