On Sat, 2001-09-08 at 21:43, Wizard wrote: > Questions regarding Bitwise operators: > > > =item rol tx, ty, tz * > ... > > =item ror tx, ty, tz * > > Are these with or without carry? > If not, is there a need for a RCL/RCR (with carry...and carry where)? > I'd think without, since I've not seen any references to a carry flag in the VM docs (I may have missed it though). > And what about a negate operator (neg)? > Wouldn't that just be "mul tx,ty,tz" where tz (heck, even ty) is -1? Out of curiosity, will there be a NOP instruction? I guess we really wouldn't need one, since things like ADD I0,I0,0 is effectively a NOP and the Dan has indicated he wanted to keep the bytecode read-only, so there'd be no need for it after optimization (after the bytecode has been fixed to the disk or in memory). Here's a dumb question: will parrot allow bytecode which is stored in a perl scalar to be executed? http://www.allegedlyfunny.com/opcodes.html I think DWIM might be a bit much, but HCF (Halt, Catch Fire) might be fun :) Brian
- Re: Math functions? (Particularly transcendental ones) Uri Guttman
- Re: Math functions? (Particularly transcendental on... Michael G Schwern
- Re: Math functions? (Particularly transcendental ones) Brian Wheeler
- Re: Math functions? (Particularly transcendental on... Bryan C . Warnock
- 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