diff options
author | 2005-07-26 08:07:39 +0000 | |
---|---|---|
committer | 2005-07-26 08:07:39 +0000 | |
commit | b8befa4601d82538f76a734d6b2af0120b4c7e4c (patch) | |
tree | 98f0a9f5ed1b8f877fe8ccfb7a8dc0105a48379f /usr.bin/cvs/file.c | |
parent | Add _PROF_PROLOGUE to Xspllower since it's so common in kernel profiles. (diff) | |
download | wireguard-openbsd-b8befa4601d82538f76a734d6b2af0120b4c7e4c.tar.xz wireguard-openbsd-b8befa4601d82538f76a734d6b2af0120b4c7e4c.zip |
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 'usr.bin/cvs/file.c')
0 files changed, 0 insertions, 0 deletions