
11 Sep
2009
11 Sep
'09
9:10 a.m.
DE skrev:
i'd like to present some kind of micro optimization towards pipelined cpus
traditionaly min() has an implementation like
template<typename type> inline type min(type a, type b) { return a<b ? a : b; }
If you are going to benchmark over several platforms, please include the technique described here: http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax (There is also code for abs()). -Thorsten