Commit Graph

9 Commits

Author SHA1 Message Date
mrg
f542cc77da be safe with buffers. KNF. 1997-04-22 11:17:58 +00:00
mrg
9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
cgd
a13d8bf828 use __inline and __asm, rather than inline and asm. By default (without -g)
lint won't accept the latter two, but will accept the former two as valid.
As far as gcc's concerned, they're the same.
1996-12-19 07:56:32 +00:00
cgd
0396d19a02 use p->hashfraction when doing non-time-critical calculations, rather than
using HASHFRACTION directly.  in time-critical calculations, if HASHFRACTION
is a power of two, check that p->hashfraction == HASHFRACTION and if so do
the calculation with the compiled-in value so that the compiler can optimize
out (potentially) expensive divisions.  if p->hashfraction != HASHFRACTION,
actually do the division.  This has the result that on machines with slow
division, the division can be optimized out of the common case, but that
if HASHFRACTION changes from the compiled-in value (for whatever reason),
profiling will still work.  Changes suggested by Chris Torek.
1996-06-12 04:15:34 +00:00
jtc
5c13daa56e Add support for PROFDIR environment variable 1995-11-21 22:23:47 +00:00
cgd
3ddd2ef5ab kill a gratuitous cast of lowpc to an int 1995-11-04 00:11:40 +00:00
cgd
693e99f736 clean up Ids 1995-02-27 12:54:33 +00:00
cgd
41006bd47b rcsids. also, avoid floating point when picking scale value. doesn't
cost much, only done once.
1994-05-14 06:31:10 +00:00
cgd
da60d30fb3 user-land profiling code. 1994-05-14 06:02:57 +00:00