arch: x86: avoided increments/decrements with side effects - moved ++/-- before or after the value use Signed-off-by: frei tycho <tfrei@baumer.com>