If you don't change the input values, the compiler can (and does, it seems) optimise away the calculation.
Make the inputs "volatile"
If you don't change the input values, the compiler can (and does, it seems) optimise away the calculation.
Make the inputs "volatile"