Annotation of OpenXM_contrib/pari-2.2/config/endian.c, Revision 1.1
1.1 ! noro 1: main()
! 2: {
! 3: int i;
! 4: union
! 5: {
! 6: unsigned long l;
! 7: char c[sizeof(long)];
! 8: } u;
! 9:
! 10: if (sizeof(long) > 4) /* avoid "left shift count >= width of type" warning */
! 11: u.l = (0x80706050UL << 28) | 0x04030201UL;
! 12: else
! 13: u.l = 0x04030201UL;
! 14: for (i = 0; i < sizeof(long); i++)
! 15: printf("%c", u.c[i]+'0');
! 16: printf("\n");
! 17: exit(0);
! 18: }
! 19:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>