Re: [fpc-devel] cmem not aligning memory

2010-04-08 Thread C Western
On 08/04/10 14:12, Jonas Maebe wrote: On 08 Apr 2010, at 15:05, C Western wrote: How about an alternative implementation, without the integer recording size? I had a quick try at this - the only use of the MemSize routine in fpc+lazarus seems to be in an optimization in resizing strings. If th

Re: [fpc-devel] cmem not aligning memory

2010-04-08 Thread Jonas Maebe
On 08 Apr 2010, at 15:05, C Western wrote: How about an alternative implementation, without the integer recording size? I had a quick try at this - the only use of the MemSize routine in fpc+lazarus seems to be in an optimization in resizing strings. If this routine is adjusted to cope wit

Re: [fpc-devel] cmem not aligning memory

2010-04-08 Thread C Western
On 03/04/10 13:12, Jonas Maebe wrote: On 03 Apr 2010, at 14:09, Micha Nelissen wrote: Do C memory managers guarantee any alignment anyway? Not for SSE (16 bytes) I'm sure, but 8 bytes I don't know. From Linux' malloc man page: For calloc() and malloc(), the value returned is a pointer to