precomputed loop limit