comparison tango/lib/compiler/llvmdc/arrays.d @ 339:385a18242485 trunk

[svn r360] Another mostly rewrite of DtoArrayInit. Should be much more robust now, and probably faster code generated for the most common cases too! Fixed issues with slice initialization (!!!) of multidimensional static arrays. Attempt to fix issue with referencing nested 'this' pointers introduced in DMD 1.033 merge.
author lindquist
date Sun, 13 Jul 2008 01:29:49 +0200
parents 895e1b50cf2a
children
comparison
equal deleted inserted replaced
338:0c90d816394f 339:385a18242485
66 auto end = a+n; 66 auto end = a+n;
67 while (p !is end) 67 while (p !is end)
68 *p++ = v; 68 *p++ = v;
69 } 69 }
70 70
71 void _d_array_init_real(real* a, size_t n, real v)
72 {
73 auto p = a;
74 auto end = a+n;
75 while (p !is end)
76 *p++ = v;
77 }
78
71 void _d_array_init_pointer(void** a, size_t n, void* v) 79 void _d_array_init_pointer(void** a, size_t n, void* v)
72 { 80 {
73 auto p = a; 81 auto p = a;
74 auto end = a+n; 82 auto end = a+n;
75 while (p !is end) 83 while (p !is end)