30 u
.l
= (((long)0x08070605) << 32) | (long)0x04030201;
34 if (sizeof(long) > 4) {
35 if (u
.c
[0] == 0x08) big
= 1;
38 if (u
.c
[0] == 0x04) big
= 1;
41 for (i
=0; i
< sizeof(long); i
++) {
42 if (big
== 1 && (u
.c
[i
] == (sizeof(long) - i
))) {
44 } else if (big
== 0 && (u
.c
[i
] == (i
+1))) {
53 printf("XNTP_BIG_ENDIAN\n");
54 } else if (big
== 0) {
55 printf("XNTP_LITTLE_ENDIAN\n");