int32 in
int32 out
int32 inrange
int32 outrange
int64_t va; int32_t result;
va = param_outrange; result = (float)((va << 15) / param_inrange); outlet_out = ((result * inlet_in) >> 15);
© 2024 Zrna Research