Hi, Thanks for all the input. I've done some test and it seems like vectorizing sqrt is the way to go. I'll probably have a try at rewriting it in assembly too - are there any good/bad things to consider ;-) For example, it seems like a good idea to unroll the loop by treating 4 or so elements in each round. But if there are not enough registers to do this, what's the best alternative: 1) Only treat 2 elements in each round 2) Use the stack 3) Split it in several loops    (i.e. first do 1/sqrt, then update forces) The code will also make use of a table that is quite a bit larger than the one in Goto's implementation - is this a good idea or will it just trash the cache by competing with other data? (Are there any things to think of to avoid cache trashing in assembly code?) Regards, Erik --------------------------------------------------------------------- Erik Lindahl, MSc erik@theophys.kth.se Theoretical Physics, Royal Institute of Technology, STOCKHOLM, SWEDEN Phone: +46 8 7907172 Fax: +46 8 104879