1 __extension__ union { double d; int i[2]; } u = { d: -0.25 };
3 /* This assumes the endianness of words in a long long is the same as
4 that for doubles, which doesn't hold for a few platforms, but we
5 can probably special case them here, as appropriate. */
6 long long endianness_test = 1;
7 #define MSW (*(int*)&endianness_test)
12 __extension__ union { double d; int i[2]; } u = { d: x };
18 if (2*sizeof(int) != sizeof(double) || u.i[MSW] >= 0)