Re: [R] aligned memory allocation in C

2008-08-13 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Jeffrey Horner wrote: Christophe Dutang1 wrote: Hi, I'm currently R porting SF Mersenne Twister algorithm of Matsumoto and Saito. To get the full power of their code, I want to use their fonction fill_array32 which need aligned memory. That is to say I need to use the C

Re: [R] aligned memory allocation in C

2008-08-13 Thread Christophe Dutang
Yes, it seems a good idea but your two questions are also good questions! Le 13 août 08 à 04:52, Jeffrey Horner a écrit : Christophe Dutang1 wrote: Hi, I'm currently R porting SF Mersenne Twister algorithm of Matsumoto and Saito. To get the full power of their code, I want to use their

Re: [R] aligned memory allocation in C

2008-08-13 Thread Luke Tierney
On Wed, 13 Aug 2008, Christophe Dutang1 wrote: Hi, I'm currently R porting SF Mersenne Twister algorithm of Matsumoto and Saito. To get the full power of their code, I want to use their fonction fill_array32 which need aligned memory. That is to say I need to use the C function memalign on

[R] aligned memory allocation in C

2008-08-12 Thread Christophe Dutang1
Hi, I'm currently R porting SF Mersenne Twister algorithm of Matsumoto and Saito. To get the full power of their code, I want to use their fonction fill_array32 which need aligned memory. That is to say I need to use the C function memalign on windows, posix_memalign on linux and classic

Re: [R] aligned memory allocation in C

2008-08-12 Thread Jeffrey Horner
Christophe Dutang1 wrote: Hi, I'm currently R porting SF Mersenne Twister algorithm of Matsumoto and Saito. To get the full power of their code, I want to use their fonction fill_array32 which need aligned memory. That is to say I need to use the C function memalign on windows,