Use native upsample functions when possible

A bit cleaner and probably a bit faster code with lsb=true.