7 __global char* restrict page,
8 __global const line_t * restrict line,
9 uint numpages, uint numlines)
12 size_t lix = get_global_id(0);
15 size_t col = get_global_id(1);
17 if (lix >= numpages*CHARS_PER_PAGE || col >= CHARS_PER_LINE)
20 /* global index in the page */
21 size_t gix = lix*CHARS_PER_LINE + col;
23 /* TODO get a character with a specific algorithm */
24 line_t l = line[lix % numlines];
26 size_t cix = get_symbol_index(&l, col);
28 #if 1 /* check, shouldn't happen */
34 page[gix] = alphabet[cix];