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]
Other format: [Raw text]

Re: Bit twiddling builtins


On Wed, Jan 29, 2003 at 02:28:02AM +0100, Falk Hueffner wrote:
> the patch is mostly finished now, only I was trying to convert
> 
> 	(ctz:narrow x)
> to
> 	(if_then_else x (ctz:wide (zero_extend:wide x)) (width narrow))

I'll look at the rest later, but... why?  The clz transformation
doesn't need an if_then_else.  An unconditional subtract works fine.

Plus, it should definitely be undefined at zero (since everyone 
does this differently).


r~


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