taumel #1 Depends on what you're doing, were you're doing it and were you're bottleneck is. For huge amounts it's still faster using a lookup table, if the table fits nicely into the cache.