Minor code improvements

A few small code modifications that should speed up Min, Max, Nearest, and ulpDiff (?) slightly.  Not 100% sure that the last one is any faster, given simple compiler optimizations.

@kortschak and @btracey - how does it look?  After this I'll merge in the interface changes.