Re: [Linux-ia64] ia64_fls patch (asm-ia64/bitops.h)

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-01-17 09:53:25
>>>>> On Thu, 16 Jan 2003 17:48:33 -0500, "MAGENHEIMER,DAN (HP-FtCollins,ex1)" <dan_magenheimer@hp.com> said:

  Dan> Here's a patch for a mistake in ia64_fls in bitops.h.  The result
  Dan> was incorrect (64) for inputs starting at 0xfffffffffffffc00.
  Dan> I've also fixed the comment and the return value (which was -65535!)
  Dan> for a zero input value.

No!  The comment was correct: the function is UNDEFINED for an argument of 0.

The rest looks good though.

	--david
Received on Thu Jan 16 14:55:00 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:11 EST