Added mulmid and div/divrem/divapprox profiling code.