Change constant division to inv multiplication