[an error occurred while processing this directive]
|
Из рассчета 16-битного процессора (сдвиг после умножения на 16 и константа А (постоянная времени) в формате Q.16)
if (abs(signal) > detector) detector=abs(signal); else detector=(detector*A) >> 8;
output = 0xF000 & (signal << exponent(detector));
ф-ция "exponent" показывает число нулевых старших бит в ее аргументе.
E-mail: info@telesys.ru