-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paths119.c
53 lines (39 loc) · 1.05 KB
/
s119.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//#include "globals.h"
#define LEN 32000
#define LEN1 3200
#define LEN2 256
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <sys/param.h>
#include <sys/times.h>
#include <sys/types.h>
#include <time.h>
#include <malloc.h>
#include <string.h>
#include <assert.h>
#define TYPE int
#define lll LEN
extern TYPE val;
extern __attribute__ ((aligned(16))) TYPE X[lll],Y[lll],Z[lll],U[lll],V[lll];
extern TYPE array[LEN2*LEN2] __attribute__((aligned(16)));
extern TYPE x[LEN] __attribute__((aligned(16)));
extern TYPE temp, s;
extern __attribute__((aligned(16))) TYPE a[LEN],b[LEN],c[LEN],d[LEN],e[LEN],
aa[LEN2][LEN2],bb[LEN2][LEN2],cc[LEN2][LEN2],tt[LEN2][LEN2];
extern TYPE indx[LEN] __attribute__((aligned(16)));
extern TYPE* /*__restrict__*/ xx;
extern TYPE* yy;
extern TYPE arr[LEN];
extern int val_s;
int s119()
{
// linear dependence testing
// no dependence - vectorizable
for (int i = 1; i < LEN2; i++) {
for (int j = 1; j < LEN2; j++) {
aa[i][j] = aa[i-1][j-1] + bb[i][j];
}
}
return 0;
}