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

Function initialData

code/Chapter10/freshman.h:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47}
48void initialData(float* ip,int size)
49{
50 time_t t;
51 srand((unsigned )time(&t));
52 for(int i=0;i<size;i++)
53 {
54 ip[i]=(float)(rand()&0xffff)/1000.0f;
55 }
56}
57void initialData_int(int* ip, int size)
58{
59 time_t t;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected