MCPcopy Create free account
hub / github.com/AdvancedCompiler/AdvancedCompiler / sum

Function sum

code/Chapter9/9-27.c:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include<omp.h>
3#include<unistd.h>
4double sum(double a[],int start,int end)
5{
6int i;
7double sum;
8for(i=start;i<end;i++)
9sum += a[i];
10return sum;
11}
12void complexcompute(int N){
13//do a lot work used_time imblance accord to C
14usleep(10000*N);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected