as 1024 and RPMmax are both constants, do that math at compile time.

George