[jit] Replace division by constants with multiplication, additions and shifts for better performance.