ack/util
George Koehler b1b737ed6c Optimize procedures that do both a / b and a % b.
Enable this in CS for PowerPC; disable it for all other machines.
PowerPC has no remainder instruction; the back end uses division to
compute remainder.  If CS finds both a / b and a % b, then CS now
rewrites a % b as a - b * (a / b) and computes a / b only once.  This
removes an extra division in the PowerPC code, so it saves both time
and space.

I have not considered whether to enable this optimization for other
machines.  It might be less useful in machines with a remainder
instruction.  Also, if a % b occurs before a / b, the EM code gets a
DUP.  PowerPC ncg handles this DUP well; other back ends might not.
2018-03-05 13:32:06 -05:00
..
ack strcmp, strncmp are in <string.h> 2017-11-14 17:35:35 -05:00
amisc Rename RELOLIS to RELOPPC_LIS. 2017-10-18 15:39:31 -04:00
arch Stop using mktemp() --- on Haiku, it always generates the same filenames, 2017-08-06 13:22:05 +02:00
ass Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
build Run all tests, even the ones which fail, and emit a test summary right at the 2016-12-01 23:03:30 +01:00
byacc Stop using mktemp() --- on Haiku, it always generates the same filenames, 2017-08-06 13:22:05 +02:00
ceg Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
cgg Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
cmisc Check each format string in tabgen.c 2017-11-13 20:59:03 -05:00
cpp Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
ego Optimize procedures that do both a / b and a % b. 2018-03-05 13:32:06 -05:00
flex Stop using mktemp() --- on Haiku, it always generates the same filenames, 2017-08-06 13:22:05 +02:00
grind Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
int Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
led Delete old "assert.h" files; use libc <assert.h>. 2017-11-09 22:22:13 -05:00
LLgen Merge pull request #69 from kernigh/kernigh-stdc 2017-11-19 12:00:40 +01:00
make Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
mcgg Restore an assignment deleted in commit 789f79b. 2017-11-07 23:52:52 -05:00
misc Use <stdarg.h> in util/misc/convert.c 2017-12-06 17:09:12 -05:00
ncgg strcmp, strncmp are in <string.h> 2017-11-14 17:35:35 -05:00
opt Delete old "assert.h" files; use libc <assert.h>. 2017-11-09 22:22:13 -05:00
shf Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
topgen strcmp, strncmp are in <string.h> 2017-11-14 17:35:35 -05:00