projects
/
babel
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix warning in kernel compilation
[babel]
/
babel.cl
1
#include "babel.h"
2
3
__kernel
4
void
5
fillpage(__global char* restrict page)
6
{
7
/* linearized index in the page */
8
size_t gix = get_global_id(0);
9
if (gix >= CHARS_PER_PAGE)
10
return;
11
12
/* TODO get a character with a specific algorithm */
13
size_t cix = gix;
14
cix %= SYMBOLS;
15
16
page[gix] = alphabet[cix];
17
18
}