frac32buffer input
frac32 b
frac32 c
frac32 d
frac32 e
frac32 f
frac32 g
frac32buffer output
int32_t ef;
int32_t a;
int32_t b;
int32_t c;
int32_t pulse1;
int32_t pulse2;
int32_t pulse3;
int32_t pulse4;
if (inlet_a > (inlet_b + (1 << 27)) >> 1) {
pulse1 = inlet_a * (inlet_c >> 15);
} else {
pulse1 = inlet_a * (inlet_d >> 15);
}
pulse2 = pulse1 > (1 << 26) ? (1 << 26) : 0;
if (inlet_a > (inlet_e + (1 << 27)) >> 1) {
pulse3 = inlet_a * (inlet_f >> 15);
} else {
pulse3 = inlet_a * (inlet_g >> 15);
}
pulse4 = pulse3 > (1 << 26) ? (1 << 26) : 0;
outlet_result = pulse2 + pulse4 - (1 << 26);