Message-ID: <001901c3388e$82ae0520$0100a8c0@acp42g> From: "Andrew Cottrell" To: References: <200306201334 DOT h5KDYMWU012441 AT speedy DOT ludd DOT luth DOT se> <000e01c337aa$7b238800$0100a8c0 AT acp42g> <3EF3E113 DOT 1C8C9C2B AT yahoo DOT com> <9743-Sat21Jun2003123351+0300-eliz AT elta DOT co DOT il> <3EF449C0 DOT 8C8A0C61 AT yahoo DOT com> <3791-Sun22Jun2003063027+0300-eliz AT elta DOT co DOT il> <3EF53044 DOT CDEA5BA1 AT yahoo DOT com> Subject: Re: LIBM patch for GCC 3.3 - math changes Date: Sun, 22 Jun 2003 17:18:41 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Reply-To: djgpp-workers AT delorie DOT com Guys, Can you please change the subject on the next response as this has nothing to do with the LIBM patch. Thanks, Andrew ----- Original Message ----- From: "CBFalconer" To: Sent: Sunday, June 22, 2003 2:27 PM Subject: Re: LIBM patch for GCC 3.3 - math changes > Eli Zaretskii wrote: > > > From: CBFalconer > > > > > > BTW I have heard nothing about the use of hooks/malldbg with > > > memalign etc. I referred to in another thread. > > > > I think we don't need any more hooks beyond those in malloc and > > friends. > > It may be necessary to put them in if only for consistency. The > end result of memalign will be the equivalent of a malloc, so if > we want to catch arena errors etc. as early as possible the hooks > will need to be there. The arena dump (mallocmap) and data from > mallinfo will naturally include the effects from memalign. The > hooks could ignore the alignment parameter easily and just use the > actual malloc hooks - the only penalty I can see is that the user > may be dumbfounded as to why it failed (i.e. non-power-of-2 > alignment parameter, or no suitable free space left). > > The routine is a real pain. I think memalign should also fail for > alignment parameter < ALIGN value (i.e. 8 at present). > > -- > Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) > Available for consulting/temporary embedded and systems. > USE worldnet address! > > >