Searched defs:cell_in (Results 1 - 2 of 2) sorted by path

/external/chromium_org/native_client_sdk/src/examples/demo/life/
H A Dlife.c39 uint8_t* cell_in; member in struct:__anon8899
89 free(g_Context.cell_in);
93 g_Context.cell_in = (uint8_t*) malloc(size);
98 g_Context.cell_in[index] = rand() & 1;
116 if (!g_Context.cell_in) return;
119 g_Context.cell_in[x - 1 + y * width] = 1;
120 g_Context.cell_in[x + 1 + y * width] = 1;
121 g_Context.cell_in[x + (y - 1) * width] = 1;
122 g_Context.cell_in[x + (y + 1) * width] = 1;
203 if (g_Context.cell_in
[all...]
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/life/
H A Dlife.c42 uint8_t* cell_in; member in struct:__anon8908
96 free(g_Context.cell_in);
100 g_Context.cell_in = (uint8_t*) malloc(size);
105 g_Context.cell_in[index] = rand() & 1;
123 if (!g_Context.cell_in) return;
126 g_Context.cell_in[x - 1 + y * width] = 1;
127 g_Context.cell_in[x + 1 + y * width] = 1;
128 g_Context.cell_in[x + (y - 1) * width] = 1;
129 g_Context.cell_in[x + (y + 1) * width] = 1;
203 if (g_Context.cell_in
[all...]

Completed in 248 milliseconds