Linus Torvalds wrote: > From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx> > Date: Thu, 24 Apr 2008 14:47:04 -0700 > > ..due to limited source sizes. > > Yeah, should do this for left shifts too. > > Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> > --- > > Again, not a lot of testing, but it _looks_ fairly sane. > > The constant value case of "operand_size()" is not actually ever used > (because a totally constant right shift will be optimized in other > places), but I wrote the code so that perhaps other cases could use this. > Whatever. > > The "do the same for left shifts" could do a similar check, but based > purely on the size of the operation, not the size of the operand value. > Which makes it not very interesting. Applied and pushed. - Josh Triplett
Attachment:
signature.asc
Description: OpenPGP digital signature