Re: [Rd] [R] aligned memory allocation in C

2008-08-14 Thread christophe dutang
Thanks for your remarks. According to http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/howto-compile.html, I need 16 bit aligned memory when using fill_array64. So I suppose I need 8 bit aligned memory. I will test what you advise me and will come back to R-devel list after. Thanks again Chr

Re: [Rd] [R] aligned memory allocation in C

2008-08-13 Thread Christophe Dutang
Hi, You are completely right, the problem was not about what R_alloc returned but my use of the fill_array32. Now it works fine, but the block generation is longer due to a conversion to double after using fill_array32. I must underline the fact that I do not yet use sse2 support. Thank