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:
> +       /* The offset from the start of the pointer will depend on the
> + 	 endianness of the machine.  */
> +       if (big_endian_p)
> + 	j = sizeof (void *) / sizeof (digit_t) - i;
> +       else
> + 	j = i;

If I'm not mistaken, j contains the offset within the pointer for the
current "digit", and i is just the loop counter, but...

> +       bias = ((digit_t *) pointers) + i;
> +       top = ((digit_t *) (pointers + n)) + i;

Everywhere else within the loop, i is used instead of j.

Michael.

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