update makefile

This commit is contained in:
Walter Bright 2008-07-08 20:53:16 +00:00
parent f052f150bd
commit 780c29f18a
9 changed files with 123 additions and 75 deletions

View file

@ -130,7 +130,7 @@ body
}
else
{
foreach (i; 0 .. a.length)
for (int i = 0; i < a.length; i++)
a[i] = b[i] + c[i];
}
return a;
@ -173,7 +173,7 @@ unittest
T[dim] b;
T[dim] c;
foreach (i; 0 .. dim)
for (int i = 0; i < dim; i++)
{ a[i] = i;
b[i] = i + 7;
c[i] = i * 2;
@ -181,7 +181,7 @@ unittest
c[] = a[] + b[];
foreach (i; 0 .. dim)
for (int i = 0; i < dim; i++)
{
assert(c[i] == a[i] + b[i]);
}
@ -301,7 +301,7 @@ body
}
else
{
foreach (i; 0 .. a.length)
for (int i = 0; i < a.length; i++)
a[i] = b[i] - c[i];
}
return a;
@ -319,7 +319,7 @@ unittest
c[] = a[] - b[];
foreach (i; 0 .. c.length)
for (int i = 0; i < c.length; i++)
{
assert(c[i] == a[i] - b[i]);
}
@ -331,7 +331,7 @@ unittest
c[] = a[] - b[];
foreach (i; 0 .. c.length)
for (int i = 0; i < c.length; i++)
{
assert(c[i] == a[i] - b[i]);
}
@ -342,7 +342,7 @@ unittest
T[dim] b;
T[dim] c;
foreach (i; 0 .. dim)
for (int i = 0; i < dim; i++)
{ a[i] = i;
b[i] = i + 7;
c[i] = i * 2;
@ -350,7 +350,7 @@ unittest
c[] = a[] - b[];
foreach (i; 0 .. dim)
for (int i = 0; i < dim; i++)
{
assert(c[i] == a[i] - b[i]);
}