CCIO_SEARCH_SAMPLE
for(j = 0; j < CCIO_SEARCH_SAMPLE; ++j) {
avg /= CCIO_SEARCH_SAMPLE;
unsigned long avg_search[CCIO_SEARCH_SAMPLE];
ioc->avg_idx &= CCIO_SEARCH_SAMPLE - 1;