Micro-optimize these functions in the case where they are not inlined.