mirror of
https://github.com/encounter/wasmtime.git
synced 2026-03-30 11:42:15 -07:00
401afdc48c
Add a glossary and explain the overall shape of a Cretonne function.
9 lines
160 B
C
9 lines
160 B
C
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;
|
|
}
|