Update language reference.

Add a glossary and explain the overall shape of a Cretonne function.
This commit is contained in:
Jakob Stoklund Olesen
2016-01-21 14:25:16 -08:00
parent 2b2b79dcf8
commit 401afdc48c
3 changed files with 138 additions and 45 deletions

8
docs/example.c Normal file
View File

@@ -0,0 +1,8 @@
float
average(const float *array, size_t count)
{
double sum = 0;
for (size_t i = 0; i < count; i++)
sum += array[i];
return sum / count;
}