Re: poke2 (to Rob)

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

On 15 Sep 2001, at 19:18, Robert Craig wrote:

> 
> Rolf writes:
> > do you see the neccessity to have a poke2() 
> > implemented into Euphoria?
> > What is your opinion or your recommendation instead?
> 
> I haven't seen a big demand for poke2().
> If I added it, I'd also have to add peek2u() and peek2s()
> for completeness. In most cases where it comes up, 
> speed is not critical, so (assuming a "little-endian" Intel machine) 
> you could use:
> 
>     poke(address, {number, floor(number/256)})
> 
> On my 350 Mhz Pentium, I can do the above statement 
> over 1.4 million times per second.

Ouch!! 233 clocks to execute one poke?

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu