For performance reasons converted the compute* functions to inline
functions