frac32buffer older
frac32buffer x0
None
combo size
static const uint32_t LENGTHPOW = (attr_size);
static const uint32_t LENGTH = 1 << LENGTHPOW;
static const uint32_t LENGTHMASK = LENGTH - 1;
int16_t *array;
uint32_t writepos;
static int16_t _array[attr_poly][1 << attr_size]
__attribute__((section(".sdram")));
array = &_array[parent->polyIndex][0];
int i;
writepos = 0;
for (i = 0; i < LENGTH; i++)
array[i] = 0;
writepos = (writepos + 1) & LENGTHMASK;
array[writepos] = __SSAT(inlet_x1 >> 14, 16);
writepos = (writepos + 1) & LENGTHMASK;
array[writepos] = __SSAT(inlet_x0 >> 14, 16);