Mercurial > projects > ldc
comparison runtime/internal/arrayInit.d @ 586:192b82878b78
Fixed most regressions from last commit.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 10 Sep 2008 12:33:33 -0700 |
parents | 44f08170f4ef |
children | 7042d912767e |
comparison
equal
deleted
inserted
replaced
585:fbb1a366cfbc | 586:192b82878b78 |
---|---|
74 auto end = a+n; | 74 auto end = a+n; |
75 while (p !is end) | 75 while (p !is end) |
76 *p++ = v; | 76 *p++ = v; |
77 } | 77 } |
78 | 78 |
79 void _d_array_init_cfloat(cfloat* a, size_t n, cfloat v) | |
80 { | |
81 auto p = a; | |
82 auto end = a+n; | |
83 while (p !is end) | |
84 *p++ = v; | |
85 } | |
86 | |
87 void _d_array_init_cdouble(cdouble* a, size_t n, cdouble v) | |
88 { | |
89 auto p = a; | |
90 auto end = a+n; | |
91 while (p !is end) | |
92 *p++ = v; | |
93 } | |
94 | |
95 void _d_array_init_creal(creal* a, size_t n, creal v) | |
96 { | |
97 auto p = a; | |
98 auto end = a+n; | |
99 while (p !is end) | |
100 *p++ = v; | |
101 } | |
102 | |
79 void _d_array_init_pointer(void** a, size_t n, void* v) | 103 void _d_array_init_pointer(void** a, size_t n, void* v) |
80 { | 104 { |
81 auto p = a; | 105 auto p = a; |
82 auto end = a+n; | 106 auto end = a+n; |
83 while (p !is end) | 107 while (p !is end) |