I am working on C code optimization and there are many calculations which adds 1.0 to the expression which returns double value like
val = 1.0 + u[8] / c_sq + (u[8] * u[8]) / (2.0 * c_sq * c_sq) - u_sq / (2.0 * c_sq)
so I was just curious to know is there any optimization technique to improve this piece of code.