> > BW> Roll y left z bits and store the result in x. > > BW> [what are the valid values for z?] > > > > isn't that rotate left? rotate should require z to be the word size or > > less. or we can define it to work modulo the word size. which reminds > > me, is there going to be a simple language way to get the word size > > (other than %Config)? > > Yep, rotate. I really need to wake up before I post email. Well, what > if a PMC or Numeric registers are passed to rol, rol, shr, shl? What > would be the size then? We could disallow them since they really don't > make sense...or do they? Is the VM going go have a fixed size register > set regardless of platform? If not, then the shift will behave > differently on each platform the bytecode is run...and that's bad, > especially if someone (cleverly) decides that a "SHL I0,I0,32" clears > the register. Previous discussions on bit operators on arbitrarily-sized integers: http://www.mail-archive.com/perl5-porters@perl.org/msg33402.html http://www.mail-archive.com/perl5-porters@perl.org/msg29166.html Executive summary: are you fixing the width of the number or not? -- Bryan C. Warnock [EMAIL PROTECTED]
- Re: Math functions? (Particularly transcendental ones) Dan Sugalski
- Re: Math functions? (Particularly transcendental ones) Brian Wheeler
- Re: Math functions? (Particularly transcendental ones) Matthew Cline
- RE: Math functions? (Particularly transcendental ones) Wizard
- Re: Math functions? (Particularly transcendental ones) Benjamin Stuhl
- RE: Math functions? (Particularly transcendental ones) Brian Wheeler
- Re: Math functions? (Particularly transcendental ones) Uri Guttman
- Re: Math functions? (Particularly transcendental ones) Uri Guttman
- Re: Math functions? (Particularly transcendental ones) Brian Wheeler
- Re: Math functions? (Particularly transcendental on... Bryan C . Warnock
- Re: Math functions? (Particularly transcendental on... Dan Sugalski
- Re: Math functions? (Particularly transcendental ones) Dave Storrs
- Re: Math functions? (Particularly transcendental ones) Jeremy Howard
- Re: Math functions? (Particularly transcendental on... Uri Guttman
- Re: Math functions? (Particularly transcendental on... Ariel Scolnicov
- Re: Math functions? (Particularly transcendental on... Michael G Schwern
- RE: Math functions? (Particularly transcendental on... Brent Dax
- Re: Math functions? (Particularly transcendental ones) Dan Sugalski