fastest way to negate a number August 17, 2023 by Tarik Use something that is readable, such as a *= -1; or a = -a; Leave the rest to the optimizer.