bool32 bit 0 LSB
bool32 bit 1
bool32 bit 2
bool32 bit 3
bool32 bit 4
bool32 bit 5
bool32 bit 6
bool32 bit 7
bool32 bit 8
bool32 bit 9
bool32 bit 10
bool32 bit 11
bool32 bit 12
bool32 bit 13
bool32 bit 14
bool32 bit 15 MSB
bool32 sign bit
int32 output
int i_out;
i_out = inlet_b0 * 1 + inlet_b1 * 2 + inlet_b2 * 4 + inlet_b3 * 8 +
inlet_b4 * 16 + inlet_b5 * 32 + inlet_b6 * 64 + inlet_b7 * 128 +
inlet_b8 * 256 + inlet_b9 * 512 + inlet_b10 * 1024 + inlet_b11 * 2048 +
inlet_b12 * 4096 + inlet_b13 * 8192 + inlet_b14 * 16384 +
inlet_b15 * 32768;
if (inlet_sign == 1)
i_out = -1 - i_out;
outlet_out = i_out;