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

Function initialData_int

code/Chapter10/freshman.h:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56}
57void initialData_int(int* ip, int size)
58{
59 time_t t;
60 srand((unsigned)time(&t));
61 for (int i = 0; i<size; i++)
62 {
63 ip[i] = int(rand()&0xff);
64 }
65}
66void printMatrix(float * C,const int nx,const int ny)
67{
68 float *ic=C;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected