Yeah right, a few micro-seconds difference.(and space isn't quite a big problem these days though !)
Thanks !
Type: Posts; User: Mrc0d3r
Yeah right, a few micro-seconds difference.(and space isn't quite a big problem these days though !)
Thanks !
Completely agree ! And regarding the multi-threading part, I thought we could split up the work to threads :S
This can do the job I suppose..
next = next + last;
last = next - last;
That piece of code would certainly do the job, but it can be made more efficient by implementing recursion also you can fix the swap part to a 2 variable one. A little bit of threading should make it...