ah, I didn't see the rest of the code :)
still having that function looks nicer and the compiler will optimize it anyway