i want to make a new float type with a size of 128-bit , the exponent would have 4-bytes(32-bit) and the fraction would have 12-bytes(96-bit), how i can make this type in c++, where i will be able to do input, output ,+,-,*,/ operations.
[I am thinking of c++ class but i can't figure how i will mange up between exponent and fraction with the specified length]
I have tried "bitset" std class, but it has a huge size in comparison with what i need for example "std::bitset<16> foo;" give a size of 8-bytes.
Any Suggestions !