2 Aug 2003 23:21
Re: can't profile on Shark
Valeriy E. Ushakov <uwe <at> ptc.spbu.ru>
2003-08-02 21:21:44 GMT
2003-08-02 21:21:44 GMT
On Thu, Jun 26, 2003 at 15:59:14 +0100, Richard Earnshaw wrote: > rearnsha <at> arm.com said: > > I don't know why the gmon module needs to do FP arithmetic, I though > > it just wrote out the raw tables. > > Hmm, this is from libc/gmon/gmon.c: > > #ifndef notdef > s_scale = ((float)p->kcountsize / o ) * SCALE_1_TO_1; > #else /* avoid floating point */ > u_long quot = o / p->kcountsize; > > if (quot >= 0x10000) > s_scale = 1; > else if (quot >= 0x100) > s_scale = 0x10000 / quot; > else if (o >= 0x800000) > s_scale = 0x1000000 / (o / (p->kcountsize >> 8)); > else > s_scale = 0x1000000 / ((o << 8) / p->kcountsize); > #endif > > Anyone know why that is "#ifndef notdef" rather than "#ifdef notdef"? > Seems backwards to me... On Thu, Jun 26, 2003 at 18:53:08 -0700, Jason Thorpe wrote: > On Thursday, June 26, 2003, at 07:59 AM, Richard Earnshaw wrote: >(Continue reading)
RSS Feed