This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: New libiberty sorting routine


On Sun, Apr 23, 2000 at 06:01:30PM -0700, Mark Mitchell wrote:
> +   /* Figure out the endianness of the machine.  */
> +   for (i = 0; i < sizeof (size_t); ++i)
> +     ((char *)&j)[i] = i;
> +   big_endian_p = (((char *)&j)[0] == 0);

This is always false.


r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]