frac32.bipolar in
frac32.positive quant
frac32 out
frac32.u.map quant
int32_t quant = param_quant + inlet_quant;
if (quant > 0)
if (inlet_in > 0)
outlet_out = ((inlet_in + (quant >> 1)) / quant) * quant;
else if (inlet_in < 0)
outlet_out = ((inlet_in - (quant >> 1)) / quant) * quant;
else
outlet_out = 0;
else
outlet_out = inlet_in;