frac32.positive in
frac32.bipolar factor
frac32.positive modulo
int32.positive integer
bool32.tgl mirror
frac32.u.map factor
int32_t factor;
factor = __USAT(param_factor + inlet_factor, 27);
if (!param_mirror) {
// q21 q27
int32_t val = ___SMMUL(factor, inlet_in); // q16
outlet_modulo = (val & ((1 << 16) - 1)) << 11;
outlet_integer = val >> 16;
} else {
// q21 q27
int32_t val = ___SMMUL(factor, (1 << 27) - inlet_in); // q16
outlet_modulo = (1 << 27) - ((val & ((1 << 16) - 1)) << 11);
outlet_integer = val >> 16;
}