Subject: Re: MAXPARTITIONS (kern/18256)
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 06/16/2003 21:27:25
> As an interum, the i386 method should be changed to move bit fields
> around.  We're talking about quantities that line up as nice
> bitmasks, yet it does multiplication and division.

If multiplication and division by powers of two don't turn into shifts,
we seriously need a better compiler.  That's really rudimentary
optimization, the sort of thing I would expect a compiler to do even
without specifically enabling optimization.

At worst it might be necessary to add some casts, or use inline
functions, to make the operands have unsigned types.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B