delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/06/22/13:17:43

Date: Sun, 22 Jun 2003 20:15:52 +0300
From: "Eli Zaretskii" <eliz AT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-Id: <3405-Sun22Jun2003201552+0300-eliz@elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <3EF53044.CDEA5BA1@yahoo.com> (message from CBFalconer on Sun, 22
Jun 2003 00:27:48 -0400)
Subject: Re: memalign hooks (was: LIBM patch for GCC 3.3 - math changes)
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>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sun, 22 Jun 2003 00:27:48 -0400
> From: CBFalconer <cbfalconer AT yahoo DOT com>
> > 
> > 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.

I have no objections to add such hooks, but it is not necessary to do
that for nmalloc to go into the next alpha.  So I'd suggest to finish
memalign interface first, which will allow Richard to proceed with
preparing the next pretest.  Then, if you feel like adding the hooks,
please do.

> I think memalign should also fail for alignment parameter < ALIGN
> value (i.e. 8 at present).

IMHO, it should behave in a way that is compatible with other
implementations.  Could someone please look on their nearest Unix or
GNU/Linux box and see what does memalign there do for such small
alignment parameters?  (Sorry, no time to do this myself.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019