diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2005-07-26 08:07:40 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2005-07-26 08:07:40 +0000 |
commit | 897e6187cf9e656bcc47a0b6a18fe3e662681442 (patch) | |
tree | 20fc7fed30cb4d4f4a55794adaca188c30def5b5 /sys/arch/vax | |
parent | 419143651f705d739b23c94295dc1168df5d7b68 (diff) |
In splraise, change an:
if (x > foo->bar)
foo->bar = x;
to:
foo->bar = MAX(x, foo->bar);
This forces gcc to generate much better code even though both
experessions are equivalent. Normally I wouldn't bother with
microoptimizations like this, but I needed some generated assembler
that uses cmov and splraise used so often..
ok toby@ (well, he ok:ed a diff that didn't use the MAX macro, but it's
the same code)
Diffstat (limited to 'sys/arch/vax')
0 files changed, 0 insertions, 0 deletions