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

Function function

code/Chapter8/8-2.c:4–13  ·  view source on GitHub ↗

一个随机的float值

Source from the content-addressed store, hash-verified

2#include<malloc.h>
3float x=5.5642;//一个随机的float值
4void function(float* a, int N)
5{
6 int i;
7 float phi = 2.541, delta, alpha,temp;
8 temp = x;
9 delta = temp * temp;
10 alpha = temp / 2;
11 for (i = 0; i < N; i++)
12 a[i] = temp * phi;
13}
14int main()
15{
16 float*b;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected