I have an assignment in which I have to create a 16-byte float, allocating bits to mantissa, exponent, sign of mantissa and sign of exponent at my own discretion. I have planned it to be as follows -

Bits Purpose

1 Sign of mantissa

2 – 32 Mantissa

33 Sign of exponent

34-128 Exponent of 10

Please guide me on how can I store this information, and perform addition & multiplication in this types.

I understand I have to use bitwise operators, but I m stuck.