On Jan 15, 2008 11:56 PM, Duncan Sands <[EMAIL PROTECTED]> wrote:
> Hi Bill,
>
> > + // Determine endianness of host machine.
> > + union {
> > + int x;
> > + char y[sizeof(int)];
> > + } u;
> > + u.x = 1;
> > + bool BigEndian = (u.y[0] != 1);
>
> how about using bigEndianHost in System/Host.h instead?
>
Good idea! Done.-bw _______________________________________________ llvm-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
