Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of