This function has a trivial implementation so it should be defined inline to take advantage of optimizations.