It's common place to see fixed width typedefs for integral types, like uint8_t, int64_t, etc., either in stdint.h or generated by the autotools.
What do others typically do for floating point types where they need to ensure that they are of a given width? e.g. Typically 32-bits for single precision and 64-bits for double precision. This can be needed when one needs to send binary data out to disk or over the network containing floats where endianness at least is known, but width is not, and it may be read at the other end by a different machine.
What do others typically do for floating point types where they need to ensure that they are of a given width? e.g. Typically 32-bits for single precision and 64-bits for double precision. This can be needed when one needs to send binary data out to disk or over the network containing floats where endianness at least is known, but width is not, and it may be read at the other end by a different machine.