From: Timothy Hunter Date: 2007-04-22T22:50:19+09:00 Subject: Re: Memory alignment Detlef Reichl wrote: > Hi, > > in an C extension i need to generate ruby strings, where str->ptr is > aligned to a 16 byte boundary. This is necessary so that the data can be > used with simd engines (AltiVec, SSE, ...). > > Is there a way to do this? > > Cheers > detlef > > There's no way to tell Ruby to align its strings this way. Your only option is to make a copy aligned to your needs.