Re: Remind me - mem_set()?

new topic     » goto parent     » topic index » view thread      » older message » newer message
Spock said...

I believe a series of 10 mem_copy() calls, with each subsequent call being twice the size of the previous one, could be quite a fast way to do it. You would have to trim the last one.

(sorry for the tardy reply, been busy) Nice try, but I doubt that would be as fast as mem_copy(mem,mem+4,1996)... and I still suspect the unnecessary reads might halve performance.

Don't get me wrong: I'm perfectly happy to slap down a little inline assembler, it just strikes me as a little bit odd there isn't a properly efficient hll way to do it.

PS obviously no-one should really care about 2K, but since even my bargain basement £80 phone takes 50MP photos, then someone might.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu