Re: Rob: Feature request for next release

new topic     » goto parent     » topic index » view thread      » older message » newer message

christian cuvier wrote [quoting level corrected]:

> posted by: Bernie Ryan
>
>> Vincent wrote:
>>
>>> Rob, can we have some basic bit shifting routines for the next release:
>>> shift_left() and shift_right()? It doesnt matter to me if they are
>>> implemented internally, machine_proc/func(), or routines in "misc.e"...
>>> anything would do; they are neccessary.
>>
>> Vincent:
>>   shifting is already available in Euphoria by
>>   multiplying and dividing  by 2.
>>   check the library doc.
>>   see power function
>> Bernie
>
> I'd rather push for rotate() functions that would work on any 32-bit
> integers.

You can do this and much more, using <http://rapideuphoria.com/bit.zip>.

> Btw, what could be even more useful is to be able to perform elementary
> arithmetic on memory locations. For instance, you currently have to type

This can not be done with bit.zip.

<snip>

Regards,
   Juergen

-- 
Have you read a good program lately?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu