max = max_sample; | max = max_sample; | ||||
do { | do { | ||||
int16_t d=*p++; | int16_t d=*p++; | ||||
// TODO: can we speed this up with SSUB16 and SEL | |||||
// http://www.m4-unleashed.com/parallel-comparison/ | |||||
if (d<min) min=d; | if (d<min) min=d; | ||||
if (d>max) max=d; | if (d>max) max=d; | ||||
} while (p < end); | } while (p < end); |