projects
/
akaros.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Syscalls now can take six arguments (XCC)
[akaros.git]
/
tests
/
vvadd.c
1
#include <assert.h>
2
#include <stdio.h>
3
4
int main()
5
{
6
#define N 12345
7
double x[N];
8
double y[N];
9
double z[N];
10
11
for(int i = 0; i < N; i++)
12
{
13
x[i] = (double)i;
14
y[i] = (double)(2*i);
15
}
16
17
for(int i = 0; i < N; i++)
18
z[i] = x[i]+y[i];
19
20
for(int i = 0; i < N; i++)
21
assert((int)z[i] == 3*i);
22
23
printf("vvadd works!\n");
24
25
return 0;
26
}