1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 08:15:26 +03:00

Blackbox code size savings by factoring common loops out into fuctions

This commit is contained in:
Nicholas Sherlock 2015-07-31 15:23:56 +09:00
parent 53860e461c
commit 0c4604eeef
5 changed files with 63 additions and 43 deletions

View file

@ -237,3 +237,10 @@ int32_t quickMedianFilter9(int32_t * v)
QMF_SORT(p[4], p[2]);
return p[4];
}
void arraySubInt32(int32_t *dest, int32_t *array1, int32_t *array2, int count)
{
for (int i = 0; i < count; i++) {
dest[i] = array1[i] - array2[i];
}
}